Re: Please help
| From: | Micah Stevens | Date: | Wed, 08 Sep 2004 20:14:08 +0000 |
| Subject: | Re: Please help | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-36122@lists.php.net to get a copy of this message | ||
Change the code to this:
$result = mysql_query($sql . " " . $sql_ext . " limit 0,1") or
die(mysql_error()."<br>".$sql." ".$sql_ext . " limit
0,1<br>");
And you'll get the error from mysql and a copy of the actual query. Without
that, it's pretty tough to help.
-Micah
On Wednesday 08 September 2004 12:29 pm, Stuart Felenstein wrote:
> I'm using a product called dbqwiksite pro. PHP
> generator for PHP - MySQL
>
> The code seems to be working fine except in my search
> page where I receive an "invalid query"
>
> $result = mysql_query($sql . " " . $sql_ext . " limit
> 0,1")
> or die("Invalid query");
>
> This is the place I where the code is taking the die
> path.
> I'm guessing something belongs between the quotation
> marks , just not sure.
>
> Anyone ?
>
> Thank you
> Stuart