Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Trinti is duomenu bazes

Parašė JaWa· 2010 Spa. 19 17:10:52
#1

Sveiki. kaip galima sita dalyka perdaryti, kad surasius daugiau negu 1 id stulpeliu ir paspaudus mygtuka "trinti" issitrintu jie visi is db ?


<?php
if (ini_get('register_globals') != 1) {
if ((isset($_POST) == true) && (is_array($_POST) == true)) extract($_POST, EXTR_OVERWRITE);
if ((isset($_GET) == true) && (is_array($_GET) == true)) extract($_GET, EXTR_OVERWRITE);
}
require_once "maincore.php";
require_once THEMES."templates/header.php";

opentable("trinti");

if (isset($_POST['add'])) {

dbquery("delete from ".$db_prefix."downloads where download_url='$id'");


}
echo "<table class=tbl align=center>";
echo "<tr>
<form name='punish' method='post' action='".$PHP_SELF."'>
<td align='center' class='tbl2'><textarea name='id' rows='40' cols='2000' class='textbox' style='width:400px'></textarea><br>
<input type='submit' name='add' value='Trinti' class='button'>
</td></form></tr></table>";

closetable();

require_once THEMES."templates/footer.php";
?>


pvz: