Re: PHP cannot access mySQL
| From: | Nhan | Date: | Fri, 02 Nov 2007 10:44:33 +0000 |
| Subject: | Re: PHP cannot access mySQL | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44303@lists.php.net to get a copy of this message | ||
I can retrieve no errormessage. PHP script ran to the line, where connection
to MySQL is build. I think, I must setup the IIS so, that it error message
is displayed (???). With the following code is shown only the string "before
connecting".
How can I do?
My PHP code:
echo "<br>before connecting";
$link = mysql_connect(const_HOSTNAME, const_USERNAME, const_PASSWORD);
if (!$link)
die("no connection is possible...: " .mysql_error());
echo "<br>after link";
return;
"Chris" <dmagick@gmail.com> wrote in message
news:472A62EE.4070204@gmail.com...
> Nhan wrote:
>> Hi,
>> I have IIS 5.1 with PHP 5 and MySQL 4.1
>> With a client tool (such as MySQL Front) I can access MySQL. But my PHP
>> page cannot, with the same username and passord.
>> Why? What can I do?
>
> What is the error message?
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/