Log in

View Full Version : Removing Latest Rows From Database



VitaminWater
11-18-2008, 05:11 PM
I have an area in my admin cp that lets the admin post an 'alert' to the main page warning users of downtime and such.
If there are no entrys in the 'alerts' table in my database then nothing changes on my main screen, but if there is an alert in the table, it is displayed. I want to add a button in the admin cp that lets the admin delete the only active alert, essentially just removing the one and only entry in a table. My table does not have an index column and i am unsure how to do this otherwise
thank you.