Results 1 to 8 of 8
Threaded View
-
30th Nov 2010, 02:22 PM #5MemberWebsite's:
epicimagehost.comNotice I changed your checkbox.
I added name=" and value=""
I'm fairly tired atm and can't focus. So could be entirely wrong
PHP Code:<?php
if($_GET['do'] == 'submit' && !empty($_POST['id'])){
foreach($_POST['id'] as $ID){
if(!is_numeric($ID)){
echo ' Whaaaat, the ID '.$ID.' isn\'t a number? ';
exit;
}
mysql_query('UPDATE `images` SET `approved` = "true" WHERE `id` = '.$ID);
}
}else{
// Show form
$picture = mysql_query("SELECT path, id FROM images WHERE approved='false'");
echo "<form action='approve.php?do=submit' method='post'>" ;
while($result = mysql_fetch_array($picture)){
echo "<img src='../".$result['path']."'>";
echo '<input type="checkbox" name="id[]" value="'.$result['id'].'" id="'.$result['id'].'" />';
}
echo "</form>";
}
?>
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How to use the IP Deny Manager in cPanel
By Areon in forum Server ManagementReplies: 0Last Post: 1st Mar 2014, 04:12 PM -
Non Approval Vs Approval Article Sites
By GBot in forum Whitehat SEOReplies: 0Last Post: 10th Dec 2013, 08:21 AM -
[PHP] using ipRangeCalculate.php to deny IPs
By NewEraCracker in forum Web Development AreaReplies: 2Last Post: 27th Aug 2011, 09:22 PM -
how to auto deny ip's via csf
By adanrott in forum Technical Help Desk SupportReplies: 3Last Post: 16th Mar 2011, 06:51 PM -
[BATCH] Firewall - Allow/Deny Script
By l0calh0st in forum Web Development AreaReplies: 0Last Post: 31st Jul 2010, 04:16 PM
themaLeecher - leech and manage...
Version 5.04 released. Open older version (or...