How to connect the MySql database through PHP Script

 

<?php
$dbconn = mysqli_connect('localhost','root','','restaurant');
if($dbconn)
{
//echo "connected succesfully";
}
else
{
die("connection failed:". mysqli_connect_error());
}
?>
view raw dbconfig.php hosted with ❤ by GitHub





Comments

Popular posts from this blog

Your build is currently configured to use incompatible Java 21.0.3 and Gradle 8.2.1. Cannot sync the project.

Google Assistant Implementation in Android application with app actions