vicodin Posted November 23, 2008 Share Posted November 23, 2008 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 More sharing options...
corbin Posted November 23, 2008 Share Posted November 23, 2008 Just once. Link to comment https://forums.phpfreaks.com/topic/133912-selecting-database/#findComment-697064 Share on other sites More sharing options...
vicodin Posted November 23, 2008 Author Share Posted November 23, 2008 Ok cool... Thanks Link to comment https://forums.phpfreaks.com/topic/133912-selecting-database/#findComment-697070 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.