Posted by Rik on 12/14/06 06:21
cerberus wrote:
> I'm totally new to PHP and MySQL. I'm using a quick start guide to
> make a little blog. I get:
>
> "You have an error in your SQL syntax; check the manual that
> corresponds to your MySQL server version for the right syntax to use
> near 'LIMIT 1' at line 1. The query was DELETE FROM blog_entries WHERE
> blog_id= LIMIT 1."
There should be an extra check wther $_POST['id'] is set. It isn't, or
results in null in strings, so the result (the query as you mentioned
above) is invalid.
--
Rik Wasmus
[Back to original message]
|