skeery2605 Posted October 15, 2014 Share Posted October 15, 2014 In the 13.6 & 16.4 scripts it requires a DB connection using 13.6---> $dbc = mysqli_connect ('localhost', 'username', 'password', 'forum'); 16.4---> $mysqli = new MySQLi('localhost', 'username', 'password', 'forum'); is there any way i could make it use the mysqli_oop_connect.php instead? I'm in school and i dont like having my DB username & password on my screen like that where anybody could see it. Link to comment Share on other sites More sharing options...
Larry Posted October 15, 2014 Share Posted October 15, 2014 I'm a bit confused. The 16.4 is the OOP interface, no? Also, keep in mind that if you put your username and password in the PHP script, nobody can see it unless your server is broken. Link to comment Share on other sites More sharing options...
skeery2605 Posted October 17, 2014 Author Share Posted October 17, 2014 Sorry about the confusion. I'm wanting to use the mysqli_oop_connect.php file for my DB connection instead of the way it tells me in 16.4. which is -----> $mysqli = new MySQLi('localhost', 'username', 'password', 'forum'); I'm not sure how to do it or if it is possible. Link to comment Share on other sites More sharing options...
Larry Posted October 25, 2014 Share Posted October 25, 2014 If I understand you correctly, you'd just take those two lines out of 16.4 (post message) and replace them with an inclusion of the mysqli_oop_connect.php file. Link to comment Share on other sites More sharing options...
Recommended Posts