What are the mysql connection details for wamp, and is there a little php script to test that it's connected?
Thanks
Luke
What are the mysql connection details for wamp, and is there a little php script to test that it's connected?
Thanks
Luke
Server: localhost
Username: root
Password: not set unless you specified one
Database: create one![]()
<?php
$host = 'x';
$user = 'x';
$pass = 'x';
$dbname = 'x';
if(mysql_connect($host, $user, $pass)) {
if(mysql_db_select($dbname)) {
echo "Connected!";
} else {
echo "db not working!";
}
echo "none of it working!";
}
?>
wamps great![]()
How could this hapen to meeeeeeeeeeeeeee?lol.
Fatal error: Call to undefined function mysql_db_select() in C:\wamp\www\test.php on line 8
thanks
+rep to all
my bad![]()
How could this hapen to meeeeeeeeeeeeeee?lol.
Want to hide these adverts? Register an account for free!