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? Quote Link to comment Share on other sites More sharing options...
corbin Posted November 23, 2008 Share Posted November 23, 2008 Just once. Quote Link to comment Share on other sites More sharing options...
vicodin Posted November 23, 2008 Author Share Posted November 23, 2008 Ok cool... Thanks 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.