Net123 Posted January 22, 2011 Share Posted January 22, 2011 Hi i have start's learning sql from w3schools now i have question in that ?I have 4 thing's in my hand 1)database name2)database user3)database password4)host(localhost)but here three thing's only found how can i solve this ?mysql_connect("your.hostaddress.com", "username","password") Link to comment Share on other sites More sharing options...
Net123 Posted January 22, 2011 Author Share Posted January 22, 2011 Can i store the user's setting's using mysql ?(without login system) Link to comment Share on other sites More sharing options...
Greysoul Posted January 22, 2011 Share Posted January 22, 2011 Hi i have start's learning sql from w3schools now i have question in that ?I have 4 thing's in my hand 1)database name2)database user3)database password4)host(localhost)but here three thing's only found how can i solve this ?mysql_connect("your.hostaddress.com", "username","password") $con = mysql_connect("localhost","dbusername","dbpass");if (!$con) { die('Could not connect: ' . mysql_error()); }mysql_select_db("dbname", $con); Link to comment Share on other sites More sharing options...
Synook Posted January 22, 2011 Share Posted January 22, 2011 You select the database using mysql_select_db(). One database server may hold many databases.As for user settings, sure, but you'll still need some way to identify them. Link to comment Share on other sites More sharing options...
Net123 Posted January 22, 2011 Author Share Posted January 22, 2011 Can i use multiple database's for single page ? Link to comment Share on other sites More sharing options...
Net123 Posted January 22, 2011 Author Share Posted January 22, 2011 Can i use multiple database for a single page ? Link to comment Share on other sites More sharing options...
Synook Posted January 22, 2011 Share Posted January 22, 2011 Yes. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.