Jump to content

[SOLVED] Delete all?


Pyro

Recommended Posts

hey people, just wondering stuck on this php action first one for ages,

could someone please tell me how to make this piece of code delete all?

 

if ($_GET['action'] == "wipe" ){ 

$id = $_GET['id'];

$stresult = mysql_query("DELETE FROM replys WHERE id='$id'")
or die(mysql_error());


echo "All forum posts have been deleted.";}

Link to comment
https://forums.phpfreaks.com/topic/124112-solved-delete-all/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.