delete statement problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ian Davies

    #1

    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

    #2
    Re: delete statement problem

    please ignore
    Ive sorted it
    ian


    "Ian Davies" <iandan.dav@vir gin.net> wrote in message
    news:2SHhg.1545 0$x53.7020@news fe1-win.ntli.net...[color=blue]
    > 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
    >
    >[/color]


    Comment

    Working...