WHy PHP is not showing SQL syntax (or any) errors?
I'm using Win98Me with Apache 1.3.12 and PHP 4.x.
it works... if I run a correct query it runs normally, but if I go like:
$query="selct nonexistingfield from nonexistingtable with all crazy syntax";
mysql_query($query);
it doesn't tell me the
At 15:42 9/2/2001 +0100, Dominick Vansevenant wrote:
>Try to put this immediately after the mysql_query:
>
>echo mysql_errno().": ".mysql_error()."";
>
>I think this outputs your error.
yeah, I know that... but it used to report automatically... and this is
kinda stupid don't u think? there's no
On Fri, Feb 09, 2001 at 12:48:46PM -0200, Christian Dechery wrote:
> yeah, I know that... but it used to report automatically... and this is
> kinda stupid don't u think?
Yes, I do agree that it was kind of stupid to report automatically. It
is much better to allow the user to trap the error a
El Vie 09 Feb 2001 11:38, Christian Dechery escribió:
> WHy PHP is not showing SQL syntax (or any) errors?
>
> I'm using Win98Me with Apache 1.3.12 and PHP 4.x.
>
> it works... if I run a correct query it runs normally, but if I go like:
>
> $query="selct nonexistingfield from nonexistingtable wit
- Original Message -
From: "Christian Dechery"
> WHy PHP is not showing SQL syntax (or any) errors?
>
> I'm using Win98Me with Apache 1.3.12 and PHP 4.x.
>
> it works... if I run a correct query it runs normally, but if I go like:
>
> $query="selct nonexistingfield from nonexistingtable w
Try to put this immediately after the mysql_query:
echo mysql_errno().": ".mysql_error()."";
I think this outputs your error.
D.
-Original Message-
From: Christian Dechery [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 9 februari 2001 15:38
To: [EMAIL PROTECTED]
Subj
urday, February 10, 2001 7:12 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] mysql not reporting errors
- Original Message -
From: "Christian Dechery"
> WHy PHP is not showing SQL syntax (or any) errors?
>
> I'm using Win98Me with Apache 1.3.12 and PHP 4.x.
>
> it works.
7 matches
Mail list logo