PDA

View Full Version : Deleting all templates with a certain prefix?


Link14716
02-01-2003, 03:20 PM
Say I want to delete all templates with the rpg_ prefix. It would take far too long to delete each one manually, so how could I easily delete them all at the same time?

GSHelpBoy
02-01-2003, 10:34 PM
I think something like this would work:$sql = "DELETE FROM `table` WHERE `name` LIKE 'rpg_%'";But don't quote me on it.

Link14716
02-01-2003, 11:33 PM
I'll try it, thanks :)