PDA

View Full Version : newbie with what is probable a simple, and stupid question to ask


carlvernon
11-17-2005, 06:02 PM
when i have a mysql database and i want to link to it in my php code is there a file extension i should use for my database after the name, ie.e in ms assces i would have a database like this, orders.mdb, or would i link to it like this (i know it is not the whole code i would need to connect to a database, i am just refering to a database and telling php what the name of the database is

$dbname = 'orders';
mysql_select_db($dbname);

TheShaner
11-17-2005, 06:06 PM
No, you don't. I used the database name I have in my MySQL/PHP Admin. No extensions needed.

-Shane