468,146 Members | 1,470 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,146 developers. It's quick & easy.

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 1013
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 this site, you agree to our Privacy Policy and Terms of Use.