php - how can i delete rows id from the database -
Can someone help me? Here is my PHP script ... $ req = Mysql_query ('Select ID, email, start_data, end date, time_imm, timed upload, payment_moth, booking_import status status from where status = "cancel "'); While ($ dnn = mysql_fetch_array ($ req)) $ req1 = mysql_query ('booking_elements WHERE id =' $ id '); While ($ dnn1 = mysql_fetch_array ($ req1)) {& lt; Td square = "left" & gt; & Lt; Center & gt; & Lt; A href = "delete.php? Id = How do I get an ID from $ dnn ['id'] to delete the rows? Mike Brent is perfect; You should delete them without first searching one, but if you want to use the ID, you will use it: // last ... ($ dnn = mysql_fetch_array ($ Req)) {$ delete_id = $ dnn [id ']; $ Req1 = mysql_query ("booking_members delete WHERE id = '". $ Delete_id. "'"); // ... Continue