Jump to content

about mysql_select_db


qasaa

Recommended Posts

go into phpmyadmin or whatever you use and see what the database name is then do this:

 

mysql_connect("hostname", "user", "pass") or die("could not connect");
mysql_select_db("database_name") or die("could not connect to the database");

 

if your using a local server the connect normally looks like this:

 

mysql_connect("localhost", "root", "");

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.