|
Posted by Evan Jou on 10/13/07 22:53
"Rik Wasmus" <luiheidsgoeroe@hotmail.com> wrote in message
news:op.tz5p7edu5bnjuv@metallium.lan...
> On Sun, 14 Oct 2007 00:21:52 +0200, Evan Jou <l.jou@att.net> wrote:
>
>>
>> "Rik Wasmus" <luiheidsgoeroe@hotmail.com> wrote in message
>> news:op.tz5l78hm5bnjuv@metallium.lan...
>>
>>> First rule of debugging: show, don't supress errors. So remove the @ and
>>> tell us what it sais.
>>>
>>> Also: what does phpinfo(); tell you? Is the mysql extention loaded? Have
>>> you edited the php.ini it uses or perhaps another one?
>>> --
>>> Rik Wasmus
>>
>> remove the @ didn't change it, still nothing shown in the browser.
>>
>> Oh! phpinfo() show that mysql.default_host, mysql.default_password,
>> mysql.default_port, mysql.default_socket, mysql.default_user all "no
>> value",
>> is that the reason for what happened? My php.ini file is located in
>> c:\php\,
>> it should be the one in use. So what should I do next? Thank you!
>
> Hmmmz, enable error_reporting & display_errors in php.ini for your
> development server. Most likely it will report a parse error. Use an
> editor with syntax highlighting: much easier to spot the missing closing
> quotes on line 3:
> or die("Could not connect to MySQL server!);
> --
> Rik Wasmus
Oh! Thank you! It is a parse error. Now I get the right result. Thank you!
Evan Jou
Navigation:
[Reply to this message]
|