|
Posted by Rik Wasmus on 10/13/07 22:31
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
Navigation:
[Reply to this message]
|