Joshua Posted March 27, 2010 Share Posted March 27, 2010 I for the life of me have not seen any type or form of connection identifier for this engine Is there one? Isnt that a bit....unsafe not to have one? :| Quote Link to comment Share on other sites More sharing options...
Zeggy Posted March 27, 2010 Share Posted March 27, 2010 You mean a database connection> You don't really need to specify it in mysql queries unless you're connecting to more than one database at a time. Otherwise it just uses an existing connection you made on the page. Quote Link to comment Share on other sites More sharing options...
Dominion Posted March 28, 2010 Share Posted March 28, 2010 thought it was just $connect ? but like zeggy said you dont need to use it on queries unless you're connecting to more than one database at a time. think it can be found in connect.php Quote Link to comment Share on other sites More sharing options...
Joshua Posted March 28, 2010 Author Share Posted March 28, 2010 Hm, Was just curious, isnt it a bit "unsafe" not to have ? Quote Link to comment Share on other sites More sharing options...
Zeggy Posted March 29, 2010 Share Posted March 29, 2010 Why do you think it might be unsafe? Quote Link to comment Share on other sites More sharing options...
Taxed Posted March 29, 2010 Share Posted March 29, 2010 Connect.php - This handles the initial database connection and the creation of a user session. Safe.php - This file then runs once a user has logged in and will check the users sessions credentials and if none exist or they do not corrispond with the stored data for that user it will redirect them to index.php and close the session. 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.