Home Icons

select('home_icon','*',NULL,"id = $tblid",NULL,NULL); $resultsd = $db->getResult(); foreach($resultsd as $row) { $image_name = $row['image_name']; $link = $row['link']; $category_id = $row['category_id']; $image_name = $row['image_name']; } $_SESSION['mnsbprogupdate'] = rand(11111111,99999999); ?>
Category
Link *
Image
 
 
 
0) { $error_document1 = $_FILES["image"]["error"]; } else { if($_FILES['file']['image'] > 150000) { print "Error : The image you tried to upload is too large , its need to be Max. 500Kb please try again !"; } else { $image_size = getimagesize($_FILES['file']['tmp_name']); if($image_size[0] > 400 or $image_size[1] > 300) { print "Error : The image you tried to upload is too large , its need to be Max. 400 X 300 Px. please try again !"; } else { unlink($folder.$deleteddbimagename); $temp = explode(".", $_FILES["file"]["name"]); $filename=current($temp); $ext = end($temp); $newname= "TL".time().".$ext"; move_uploaded_file($_FILES["file"]["tmp_name"] , "$folder".$newname); $updval = array('category_id' => $category_id , 'link' => $link , 'image_name' => $newname); $db->update('home_icon',$updval,"id = '$tblid'"); print "Success : Top Banner Successfully Updated !"; } } } } else { $updval = array('category_id' => $category_id , 'link' => $link); $db->update('home_icon',$updval,"id = '$tblid'"); print "Success : Top Banner Successfully Updated !"; } } $_SESSION['mnsbprogdelete'] = rand(11111111,99999999); ?> select('home_icon','*',NULL,NULL); $resultsd = $db->getResult(); foreach($resultsd as $row) { $cnt = $cnt+1; if(($cnt%2) == 0) $class = "darkcss"; else $class = "lightcss"; $id = $row['id']; $cat_id = $row['category_id']; $imagename = $row['image_name']; $link = $row['link']; $db->select('category','*',NULL,"id = '$cat_id'"); $sdasdas = $db->getResult(); $cat_name = $sdasdas[0]['title']; ?>
Sr. No. Category Link Image Action