<?php
//the example of checking MySQL database connection
//connect.php
$sql= mysql_connect("localhost","root","");
if ($sql) {
echo ("Connection is succeed and database is running");
} else {
echo ("Connection is fail and database is not running");
}
?>
No comments:
Post a Comment