scmeeker Posted September 4, 2010 Share Posted September 4, 2010 I have gone over this and over it and I can't find the syntax error. Perhaps another set of eyes will find it. $sql="UPDATE product SET title='$item_title', description='$item_description', price='$item_price', ship_to='$item_ship_to', shipping_cost='$item_shipping_cost', international='$item_international', in_location='$item_in_location', in_shipping='$item_in_shipping', country='$item_country', city='$item_city', state='$item_state', sub_id='$item_sub_id', cat_id='$item_cat_id', date=NOW(), exp_date=DATE_ADD(NOW()INTERVAL 59 DAY), relist_date=DATE_ADD(NOW(),INTERVAL 45 DAY), image_upload_box='$item_image_upload', thumb='$item_thumb', artist_email='$artist_email' WHERE id = '"$_GET['id']'"; Quote Link to comment https://forums.phpfreaks.com/topic/212541-syntax-error-unexpected-t_variable/ Share on other sites More sharing options...
sasa Posted September 4, 2010 Share Posted September 4, 2010 my cristal bowl sey: add ; in line before Quote Link to comment https://forums.phpfreaks.com/topic/212541-syntax-error-unexpected-t_variable/#findComment-1107277 Share on other sites More sharing options...
scmeeker Posted September 4, 2010 Author Share Posted September 4, 2010 I think I'm missing part of your response. I did put in another " at the end but it's giving me an error. Quote Link to comment https://forums.phpfreaks.com/topic/212541-syntax-error-unexpected-t_variable/#findComment-1107278 Share on other sites More sharing options...
Alex Posted September 4, 2010 Share Posted September 4, 2010 $sql="UPDATE product SET title='$item_title', description='$item_description', price='$item_price', ship_to='$item_ship_to', shipping_cost='$item_shipping_cost', international='$item_international', in_location='$item_in_location', in_shipping='$item_in_shipping', country='$item_country', city='$item_city', state='$item_state', sub_id='$item_sub_id', cat_id='$item_cat_id', date=NOW(), exp_date=DATE_ADD(NOW()INTERVAL 59 DAY), relist_date=DATE_ADD(NOW(),INTERVAL 45 DAY), image_upload_box='$item_image_upload', thumb='$item_thumb', artist_email='$artist_email' WHERE id = '{$_GET['id']}'"; Quote Link to comment https://forums.phpfreaks.com/topic/212541-syntax-error-unexpected-t_variable/#findComment-1107279 Share on other sites More sharing options...
scmeeker Posted September 4, 2010 Author Share Posted September 4, 2010 Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/212541-syntax-error-unexpected-t_variable/#findComment-1107281 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.