Jump to content

Selecting database


vicodin

Recommended Posts

Ok i have a script db.php which is all my db connection info. Can i put:

mysql_select_db("MyDB") or die(mysql_error());

 

in that db.php file as well so i dont need to call it with everyone of my functions(as long as i am selecting the same db) or should i call it with every function?

Link to comment
https://forums.phpfreaks.com/topic/133912-selecting-database/
Share on other sites

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.