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

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

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -