top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

One PHP Login Form for Different databases?

0 votes
342 views

I have scripted a PHP login form to works well. I thought of the sign up part and realised that there may be individual or group/ company registration.I did 2 different forms for each category of registration.My challenge now is how to integrate the two.I want to make the login form be able to serve the two database because it is a single site for both individual and corporate members.
Advice.

posted Jul 7, 2014 by Deepak Negi

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

If the databases are stored on the same server you could have two radio buttons that lets the user select if they're an individual or group / company then you can just use an IF statement to select which database it needs

I.e.

If user selects individual
--- database one
if user selects business
--- database two
answer Jul 10, 2014 by Vrije Mani Upadhyay
Similar Questions
+2 votes

I'm trying to connect to a MS SQL Server Express 2005 using PDO for ODBC, but I need the DSN string. I tried with:

$dsn = 'odbc:DRIVER={SQL Server};HOSTNAME=CCTPV608SQLEXPRESS;DATABASE=db_ibripos';

but it doesn't work, please help.

+1 vote

I'm trying to find open source code which is a form with upload script allowing a user to fill in some fields of data, then pick a couple of documents to upload and finally submit the form.

The status bar will show progress insuring the user doesn't click out and close the browser etc allowing the documents to upload. Once completed it then emails the form results and the attachments to the predetermined email address.

...