Hi, I'm trying to figure out what is going on with my mysql setup. I first installed apache then php and it was working then I installed mysql and I can't seem to connect using this in a .php page:
<html>
<body>
<?php
$con = mysql_connect("localhost","root","password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
if ($con)
{
echo "Success";
}
?>
</body>
</html>
I do have my real password in it when I run it.
The weird thing is that the above code gives me a blank page in chrome. In ie I get a 500 error. I know that php works because when I add a echo "hello"; in front of $con it displays it correctly in chrome. However, it still gives me a 500 error in ie. Does anyone know what is going on? I also don't know how to access the error log. Does anyone know where that is?
<html>
<body>
<?php
$con = mysql_connect("localhost","root","password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
if ($con)
{
echo "Success";
}
?>
</body>
</html>
I do have my real password in it when I run it.
The weird thing is that the above code gives me a blank page in chrome. In ie I get a 500 error. I know that php works because when I add a echo "hello"; in front of $con it displays it correctly in chrome. However, it still gives me a 500 error in ie. Does anyone know what is going on? I also don't know how to access the error log. Does anyone know where that is?