I have a table that filter data range by ID. That is I'm giving option to enter from Id and to Id and filter data. Now I want to update two columns to those filtered data. Can some one tell me how to do that. I want to update using a button click.
This is my query to filter data:
SELECT * FROM pass WHERE pass_id BETWEEN '$start' AND '$end'
I have tried to update data from following query:
UPDATE pass SET cash_s_date = '$date', cash_status = '$cstatus'
WHERE pass_id BETWEEN '$start' AND '$end'
but it doesn't work,