mysql and php dpn't connect
Please help
I've installed
IIS
mysql-essential-5.0.19-win32.msi
mysql-administrator-1.1.9-win.msi
mysql-query-browser-1.1.20-win.msi
php-4.4.2-Win32.zip
in that order.
Php pages display normally trough localhost, and mysql administrator shows that theres an active mysql service. However, when i try to run the following trought the localhost address where the web site is, all i get is a blank IE window, no error messages, nothing.
<html>
<head><title>Test MySQL</title></head>
<body>
<?php
$dbhost = 'localhost:3306';
$dbuser = 'root';
$dbpass = 'london';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
$dbname = 'user';
mysql_select_db($dbname);
?>
</body></html>
|