Jump to content
Larry Ullman's Book Forums

Recommended Posts

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

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

  • 2 weeks later...
 Share

×
×
  • Create New...