--- Muthukumar Selvarasu <[EMAIL PROTECTED]> wrote:
> Delete query syntax is
>
> delete from table_name;
>
> so change your query into
>
> runsql("DELETE FROM tBob WHERE ID = " . $_GET['a'] . ";");
Replies should be at the bottom of trimmed quoted text.
In either example the query you have would be ~very~ easy to abuse by a bad guy
since you have no validation of the expected value of $_GET['a']. Consider the
opportunity for SQL injection if $_GET['a'] has a value like:
"NULL; DROP TABLE tBob"
An SQL error could indeed cause your problem. While developing, you should be
prepared to display the SQL errors. I don't know all that your custom runsql()
function does so perhaps it accomplishes this.
James