MySql connection help from php
Posted by: m condiff
Date: July 22, 2005 08:51PM

I get this when i try to connect to mysql using php and apache
Warning: mysql_connect(): Unknown MySQL Server Host '“localhost”' (11001) in C:\Program Files\Apache Group\Apache2\test\connect.php on line 9

<html>
<head><title>Connect Server</title></head>
<body>
<?
$host = “localhost”;
$user = “root”;
$pass = “admin”;
$connect = mysql_connect($host, $user, $pass);


?>
</body>
</html>

thats my connect.php

I can run regular php scripts w/ no problem but when i try to connect to mysql i keep getting this error.

i dont understandf and ive been stuck on this for days.
Any help would be great.

Mike

Options: ReplyQuote


Subject
Written By
Posted
June 21, 2005 11:40AM
June 29, 2005 10:13PM
MySql connection help from php
July 22, 2005 08:51PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.