im using xampp for my local server.
im making a webpage so i can view my database.
this is my PHP codes.
<?php
$con = mysql_connect('localhost','root','');
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
?>
when i try to run my web page. it wont display anything, nor it even displays that Ive connected to my server or not.
it only diplays a blank page.
Page 1 of 1
Need help on connecting my localhost database
Share this topic:
Page 1 of 1

Help

Back to top








