I have a cron job which I want to remove just one row from the database -the top row. How do I just remove/delete one row from a database? This is code for delete all I think, so how do I make it just delete one? -(Once that is sorted I can fix this rest -delete one ORDER BY Time DESC) DELETE FROM `Queue` So how do I? Thanks, James
bizmagic, it will just remove the top row -person at top of queue... I don't want to hassle the cron job with more code if there is a way to do this (delete row) without code, so is there?
DELETE FROM `Queue` WHERE primid=somevalue note: primid should be primary key and somevalue should be the first id.