I am building a simple app whose basic task is to approve the content listed from a MySQL table. List items are long, like 15 to 20 items. I want to place a check-box right to the list items and allow the users to check multiple items and click submit button to approve selected items.
I have made a basic flag column on the table to set 0 or 1 for approve or disapprove. In my existing system user has to click the link and go to the particular page and click approve to approve the item.I want to shorten the process by allowing the users to check the check-box and select multiple entry to approve those items at one time.

this is my table and the item is YouTube link so the admin can view the video and if it good he/she can approve it by checking the check-box.
here is the php code for the current page specific to approve the item
<?php
$msg = "";
$idForm = $_GET['id'];
if( isset( $_POST['submit'] ) ){
$msg= approveVideo($idForm);
}
?>
the approveVideo function:
function approveVideo($id) {
$message ="";
$query= "UPDATE locus_videos SET set_flag='1' WHERE id='{$id}'";
if(mysql_query($query)) {
$message ="Video Approved ";
}else {
die("failed: " . mysql_error());
}
return $message;
}
The Table format for the php file:
<table width="100%" height="487" border="0" cellpadding="5" cellspacing="5">
" method="POST">
<table width="100%" border="0" cellspacing="5" cellpadding="5">
Uploader Name Video Link
"> " target="_blank">
</form>
</td>
In my current version when the user click the link of the video this redirect to the specific page and from there only he can approve the video (the YouTube link)