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

    Join Date
    Feb 2011
    Posts
    306
    Rep Power
    6

    Insert Into Not Working


    What in the world is wrong with this? I keep getting the DB error

    Code:
    mysql_query("insert into reported_scams(`user_id`, `url_link`, `business`, `company_phone`, `title`, `street`, `city`, `state`, `zip`, `country`, `date`, ) 
    values(" . 1 . ", '".$website."', '".$businessname."', '".$phone."', '".$title."', '".$street."', '".$city."', '".$state."', '".$zip."', '".$country."', NOW())")
    or die("Database error, please try again");
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2011
    Posts
    306
    Rep Power
    6
    I figured it out. I had a brain fart. LOL Sorry....
    There was an extra comma at the end.



IMN logo majestic logo threadwatch logo seochat tools logo