Imtehbegginer Posted September 2, 2006 Share Posted September 2, 2006 I cant find a post to connect, can someone post how to here? Quote Link to comment Share on other sites More sharing options...
fenway Posted September 2, 2006 Share Posted September 2, 2006 Huh? Quote Link to comment Share on other sites More sharing options...
AndyB Posted September 2, 2006 Share Posted September 2, 2006 Guessing you mean how to connect to a selected MySQL database, this is adequate:[code]$db_login = ""; // your database login name$db_pass = ""; // your database password$db_name = ""; // your database namemysql_connect($db_host, $db_login, $db_pass) or die ("Can't connect!"); mysql_select_db($db_name) or die ("Can't open database!");[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.