471,066 Members | 1,316 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,066 software developers and data experts.

delete statement problem

I am using a simple delete statement in my php script (below)

$q = "DELETE FROM commenttype WHERE TypeID=".$_POST['selectcat'];

the problem is it doesnt delete the whole row it only deletes the text in
one of the fields of the row. Has anyone else had a similar problem?
It works when I run the sql directly from a program such as mysqlphp

ian
Jun 7 '06 #1
1 1078
please ignore
Ive sorted it
ian
"Ian Davies" <ia********@virgin.net> wrote in message
news:2S******************@newsfe1-win.ntli.net...
I am using a simple delete statement in my php script (below)

$q = "DELETE FROM commenttype WHERE TypeID=".$_POST['selectcat'];

the problem is it doesnt delete the whole row it only deletes the text in
one of the fields of the row. Has anyone else had a similar problem?
It works when I run the sql directly from a program such as mysqlphp

ian

Jun 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

16 posts views Thread by Philip Boonzaaier | last post: by
9 posts views Thread by Robert Schneider | last post: by
4 posts views Thread by AlanAylett | last post: by
14 posts views Thread by Michel Esber | last post: by
1 post views Thread by Matt | last post: by
12 posts views Thread by yufufi | last post: by
2 posts views Thread by rajinbits | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.