note 58158 rejected from function.mysql-connect by jome
| From: | jome@php.net | Date: | Wed, 26 Oct 2005 05:13:36 +0000 |
| Subject: | note 58158 rejected from function.mysql-connect by jome | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-97606@lists.php.net to get a copy of this message | ||
Note Submitter: jonathanlr at todito dot com
----
I'm having some difficulties when trying to connect to MySQL,
the code I'm using is:
<?php
$cnx = mysql_connect(...);
if($cnx)
{
echo $cnx;
}
else
{
echo "Connection failed (Once again...)";
}
?>
The response I get in the browser is:
"Fatal error: Call to undefined function mysql_connect() in <directory>\connector.php on
line 3"
I've already installed PHP5, MYSQL5, and I'm editing from PHPEclipse Under WINNT.