Parašė Narysx· 2010 Sau. 17 20:01:22
#4
ex-it parašė:
<input type='checkbox' value=id name='nigga[]'>
sita salia ikisi, paskui pasidarai while kuriame visus postintus id sudedi taip
pvz.:
$a="1,3,4,5,6";
Trini
WHERE id IN(".$a.")
Taip?
$uzkl = mysql_query("select item_id, item_title, item_datestamp from table order by item_datestamp DESC LIMIT 0,10");
while ($q = mysql_fetch_array($uzkl))
{
$item_id = $q['item_id'];
$item_title = $q['item_title'];
$item_datestamp = $q['item_datestamp'];
$a="$item_id,";
echo "Id - $item_id, pavadinimas - $item_title, data - $item_datestamp <input type='checkbox' value='id' name='trinti'>";
//////trinti WHERE id IN(".$a.") ////
}