+ 1
How can I connect my site to a database using PHP
Managing database via PHP
2 Answers
+ 2
$con = mysqli_connect("host","username","password","database");
if(!$con) {
trigger_error(mysqli_error($con));
exit();
}
$query = mysqli_query($con,"SQL QUERY");
0
Thanks man