Testimonial List

select('testimonial','*',NULL,"id = $tblid",NULL,NULL); $result = $db->getResult(); extract($result[0]); $_SESSION['mnsbprogupdate'] = rand(11111111,99999999); ?>
Name *
Image
Description
 
 
 
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] > 9400 or $image_size[1] > 9300) { 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('title' => $title,'description' => $description ,'photo' => $newname); $db->update('testimonial',$updval,"id = '$tblid'"); print "Success : testimonial Successfully Updated !"; } } } } else { $updval = array('title' => $title,'description' => $description); $db->update('testimonial',$updval,"id = '$tblid'"); print "Success : testimonial Successfully Updated !"; } } if(isset($_POST[$_SESSION['mnsbprogdelete']])) { extract($_POST); $db->delete('testimonial',"id = '$tblid'"); print "Success : testimonial Successfully Deleted !

"; } $_SESSION['mnsbprogdelete'] = rand(11111111,99999999); $db->selectRowCnt('testimonial','*',NULL,$query_txt,NULL); $totalrows = $db->numRows(); if($totalrows > 0) { ?> = $plimit) { $end_count = $start + $plimit; } if ($totalrows - $end_count > $plimit) { $var2 = $plimit; } elseif ($totalrows - $end_count <= $plimit) { $var2 = $totalrows - $end_count; } $cnt = $start; $db->select('testimonial','*',NULL,$query_txt," id DESC", "$start,$plimit"); $resultsd = $db->getResult(); foreach($resultsd as $row){ $cnt = $cnt+1; if(($cnt%2) == 0) $class = "darkcss"; else $class = "lightcss"; $id = $row['id']; $item_name = $row['title']; $description = $row['description']; $photo = $row['photo']; ?>
Sr. No Name Discription Image Action
1) { ?> " class="page-far-left"> " class="page-left"> " class="page-right"> " class="page-far-right">