#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    64
    Rep Power
    2

    Need help with a query


    I'm not sure where I went wrong, but there's issues w/ the delete syntax. If someone could point it out I would appreciate it.


    PHP Code:
            if(isset($_POST['submit']))
    {
     
    mysql_query("INSERT INTO `images` (imgID,imgName,imgURL,category,tag,userID)VALUES('$maxID','$imgname','$url','$results[3]','$results[4]','$results[5]');
             DELETE FROM `pending` WHERE `tempID` = '
    $results[0]'") or die(mysql_error());

  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    64
    Rep Power
    2
    SOLVED

    I just ended up separating the two statements.

IMN logo majestic logo threadwatch logo seochat tools logo