Delete last row?
#1

removed
Reply
#2

You get the primary key (i.e. usually the id) of that row and then you send a delete query.
Reply
#3

Can you show me an example please?
Reply
#4

Код:
DELETE FROM table_name ORDER BY field DESC LIMIT 1
Change the number after LIMIT if you want to delete more than 1 row.
Reply
#5

removed
Reply
#6

You could just use gettime(); without hour, m, or s.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)