hi i am using a update query to update a first row of a table where i am using condition to match the row with product_id. here is the query
UPDATE `product_option` SET `input_value`='$color_a',`input_price`='$color_price_a' WHERE `product_id`='$_REQUEST[pid]' and `input_type`='option' LIMIT 0,1
and this is the table
here the where condition matches the 7 rows with product_id=38, when i am updating it without limit so it will update the all the rows who is having the product_id=38 but i want to update only first row. how can i do this. pls answer if anybody faced this problem before.