blanktarget Posted November 6, 2003 Share Posted November 6, 2003 I\'m using this: DELETE FROM table WHERE table_id=100; to delete the row where the id is 100. Only it\'s deleting the whole table. Link to comment https://forums.phpfreaks.com/topic/1312-trouble-deleting-rows/ Share on other sites More sharing options...
shivabharat Posted November 7, 2003 Share Posted November 7, 2003 DELETE FROM table WHERE table_id=100; Cant believe that this deleted the whold table did you have records with only table_id 100?? How are you executing this ssatement using PHP or in the mysql prompt? You can give this a try. DELETE FROM table WHERE table_id=\'100\'; If you still have problme post with your code and sample table data. Link to comment https://forums.phpfreaks.com/topic/1312-trouble-deleting-rows/#findComment-4356 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.