Re: About Buggy SQL Query
| From: | Richard Lynch | Date: | Tue, 14 Aug 2007 20:06:52 +0000 |
| Subject: | Re: About Buggy SQL Query | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260822@lists.php.net to get a copy of this message | ||
What is in $SD?
And are you using mysql_real_escape_string on all values?
On Mon, August 13, 2007 11:31 pm, Kelvin Park wrote:
> mySQL database becomes inaccessible after a buggy sql string gets
> queried.
> The SQL server runs fine, however it seems like just the database is
> being
> looped infinitely so to say.
> Here is an example:
>
> (PHP)
> $sql = "SELECT * FROM DB_TABLE WHERE PR_NUMBER = $whatever, DFLJJ =
> $SD;LOOE"; (<-- invalid sql query string)
> mysql_query($sql);
>
> When this query string is queried during the (webpage) loading
> process, the
> webpage just gets timed out without any error nor warning messages.
>
> Does anyone know if there is a certain way to prevent mysql database
> from
> stalling due to buggy sql strings?
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?