PHP Classes


Recommend this page to a friend!

      PHP MySQLi Bootstrap Reports  >  All threads  >  db2.pdf  >  (Un) Subscribe thread alerts  
Summary:error module
Author:Stefan Drugda
Date:2017-03-03 15:16:00

  1. db2.pdf   Reply   Report abuse  
Picture of Stefan Drugda Stefan Drugda - 2017-03-03 15:16:00
Who is db2.php ?

  2. Re: db2.pdf   Reply   Report abuse  
Picture of Rajesh Kakkad Rajesh Kakkad - 2017-03-04 08:23:46 - In reply to message 1 from Stefan Drugda
db2.php is included if you have separate file for mysqli connection to database.

In program I have shown
$con = mysqli_connect("localhost","my_user","my_password","my_db");
to connect to a database.

you can put that line into db2.php and whenever you have to connect to database, you can use syntax
include "db2.php";