php - Unable to connect to Database through WAMP Local server phpmyadmin -
here code connection database i.e. connection.php file.
<?php $host="localhost"; $user="root"; $password="123456"; $database="database name"; $conn=mysql_connect($host,$user,$password); mysql_select_db($database); if($conn){ $mysqlerror=false; } else{ echo "unable connect database"; $mysqlerror=true; } ?>
Comments
Post a Comment