How to use php to link with database. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to use php to link with database.

3rd Jul 2016, 6:11 PM
cyberian
cyberian - avatar
2 Answers
+ 1
Definition and Usage The mysqli_connect() function opens a new connection to the MySQL server. for example: mysqli_connect(host,username,password,dbname,port,socket); also check: http://www.w3schools.com/php/func_mysqli_connect.asp http://php.net/manual/en/function.mysqli-connect.php
30th Nov 2016, 9:56 PM
Hooman Hassanzadeh
Hooman Hassanzadeh - avatar
0
You have to make connections to database using pdo or mysqli. Mysqli is used for MySQL database.
10th Jul 2016, 8:17 AM
Shashikant Chauhan
Shashikant Chauhan - avatar