dunstantom
Programmer
So, I've just started using Php/apache/mysql on my linux box. I use php in my pages and I can access mysql from the command line with user=root and pwd=rootpwd. However, when I run this code:
<?php
echo "Starting...<br>";
$connect = mysql_connect('localhost','root','rootpwd');
if (!$connect) {
die('Could not connect: ' . mysql_error());
}
echo "Connected<br>";
... etc. ...
?>
My output is this:
Starting...
And that's it. No error or anything. I thought maybe it was my firewall, but it isn't that. Any ideas?
<?php
echo "Starting...<br>";
$connect = mysql_connect('localhost','root','rootpwd');
if (!$connect) {
die('Could not connect: ' . mysql_error());
}
echo "Connected<br>";
... etc. ...
?>
My output is this:
Starting...
And that's it. No error or anything. I thought maybe it was my firewall, but it isn't that. Any ideas?