Asperon Posted August 28, 2007 Share Posted August 28, 2007 so if I want to to do an insert query on a specific already created row, would the syntax be like this? mysql_query = "INSERT INTO coupons(paid,location) VALUES('0','$location') WHERE couponID='$couponID'"; thus paid and location information is inserted in to the coupons table with the rows that have $couponID as a their couponID right? or is there a different way that you are supposed to do it? Quote Link to comment https://forums.phpfreaks.com/topic/67117-solved-quick-query-question/ Share on other sites More sharing options...
tippy_102 Posted August 28, 2007 Share Posted August 28, 2007 If I'm reading what you want to do correctly, I would do an UPDATE UPDATE coupons SET paid = paidvalue, location = $location WHERE couponID='$couponID Quote Link to comment https://forums.phpfreaks.com/topic/67117-solved-quick-query-question/#findComment-336635 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.