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

Popular posts from this blog

java - Ebean enhancement ignores a model -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -