+ 1

How can I connect my site to a database using PHP

Managing database via PHP

15th Apr 2019, 12:47 PM
Suleiman Muhammad Aliyu
Suleiman Muhammad Aliyu - avatar
2 ответов
+ 2
$con = mysqli_connect("host","username","password","database"); if(!$con) { trigger_error(mysqli_error($con)); exit(); } $query = mysqli_query($con,"SQL QUERY");
15th Apr 2019, 2:02 PM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
0
Thanks man
15th Apr 2019, 2:56 PM
Suleiman Muhammad Aliyu
Suleiman Muhammad Aliyu - avatar