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
Ian Davies [ Mi, 07 Juni 2006 23:49 ] [ ID #1346149 ]
PHP » alt.php.sql » delete statement problem

Vorheriges Thema: mysql memory usage
Nächstes Thema: Paging with PHP?