Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: delete mygtukas

Parašė Žmogus· 2012 Lie. 10 10:07:35
#7


echo "<td>
 
<form name='deleteWish' action='trinimas.php?nuo=$nuo' method='POST'>
 
<input type='hidden' name='id' value='".$data['download_id']."'/>
 
<input type='submit' name='delete' value='Delete'>";
 
if (isset($_POST['delete'])) {
 
mysql_query("delete from ".$db_prefix."downloads where download_id='".$_POST['id']."'") or die(mysql_error());
 
//echo ($test ? "<script>alert('Istrinta');</script>" : "<script>alert('klaida');</script>";
 
}
 
echo "</form>
 
</td>\n";

Redagavo Žmogus· 2012 Lie. 10 10:07:24