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? 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 Link to comment https://forums.phpfreaks.com/topic/67117-solved-quick-query-question/#findComment-336635 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.