cyberfly 1 Report post Posted October 10, 2008 table mark------------idTable | assg1 | assg2 | assg3 | test1 | test2----------------------------------------------------1 40 30 40 70 70Fungsi : Lecturer boleh pilih nak delete markah assigment atau kuiz yang dikehendaki.So aku guna checkbox.Problem : Camne cara nak delete dalam column guna checkbox?dah puas mengoogle tapi tak jumpa Quote Share this post Link to post Share on other sites
lipas 0 Report post Posted November 5, 2008 delete multiple column?? hmm..ape kate ko buat box utk delete utk setiap markah tu..on click, value jadik kosong.. kalo tak click.. die ade value.. and value tu buleh diubah..after dah edit n check box utk delete..press submit button.. buat sql utk update dlm table.. kalo ade value boleh edit.. kalo delete.. value akan diupdate jadik kosong..fahamkan logik ini Quote Share this post Link to post Share on other sites
darkwinz_volrath 0 Report post Posted November 5, 2008 <form name=deleteform method=post action=delete.php><?php $query = mysql_query = ("select * from mark") or die (mysql_error());while($row = myqsl_fetch_array($query)){ print "<input type=checkbox name=assignment1>$row['assg1']";print "<input type=checkbox name=assignment2>$row['assg2']";print "<input type=checkbox name=assignment3>$row['assg3'];print "<input type=checkbox name=test1>$row['test1']";print "<input type=checkbox name=test2>$row['test2']";}?><input type=Submit value=Delete name=Submit>coding ni tak full ... ko kena tambah skit ... Quote Share this post Link to post Share on other sites