Twango Posted March 4, 2011 Share Posted March 4, 2011 Hi, i'm new to PHP, I do other languages, but i'm just starting php.my host provided me with this information:$mysql_host = "mysql9.000webhost.com";$mysql_database = "a5301810_***";$mysql_user = "a5301810_***";$mysql_password = "***";I've hidden the information for safety.How would I connect here?I dont know where the $mysql_database would go?i just want a really simple example.Thanks in advance. Link to comment Share on other sites More sharing options...
justsomeguy Posted March 4, 2011 Share Posted March 4, 2011 There's an example here:http://www.php.net/manual/en/function.mysql-select-db.php Link to comment Share on other sites More sharing options...
birbal Posted March 4, 2011 Share Posted March 4, 2011 ..and more heretutorialshttp://w3schools.com/php/php_mysql_intro.asphttp://w3schools.com/php/php_mysql_connect.aspmanualshttp://php.net/function.mysql_connect Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.