Jump to content

[SOLVED] Updating multiple checkboxes.


Demonic

Recommended Posts

k Well Im writing a script where if theres an error it logs in the sql and if a user does something it logs,(all basis log script)

 

Now in the admin panel I have selected all the tables for certain types of logs

 

say user logs(logs everything a user does)

 

next to each log it has a checkbox. I was wondering how can i delete every input where the checkbox is at.

 

Just a guess.  Would I give the checkbox name the same as the logs ID.

 

$log = mysql_query("SELECT * FROM logs ORDER BY id DESC");

while($logs = mysql_fetch_array($log)){

 

echo "<input type=\"checkbox\" name=\"$logs[id]\" />";

}

 

Can someone help me, if you don't understand my question Ill try to explain more.

Link to comment
https://forums.phpfreaks.com/topic/37240-solved-updating-multiple-checkboxes/
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.