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 - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -