Top Banner
select('top_link','*',NULL,"id = $tblid",NULL,NULL);
$resultsd = $db->getResult();
foreach($resultsd as $row)
{
$image_name = $row['image_name'];
$link = $row['link'];
$image_name = $row['image_name'];
$description = $row['description'];
}
$_SESSION['mnsbprogupdate'] = rand(11111111,99999999);
?>
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] > 192000 or $image_size[1] > 128000)
{
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('link' => $link,'description' => $description,'image_name' => $newname);
$db->update('top_link',$updval,"id = '$tblid'");
print "Success : Top Banner Successfully Updated !";
}
}
}
}
else
{
$updval = array('link' => $link, 'description' => $description);
$db->update('top_link',$updval,"id = '$tblid'");
print "Success : Top Banner Successfully Updated !";
}
}
$_SESSION['mnsbprogdelete'] = rand(11111111,99999999);
?>
Sr. No. |
Description |
Title |
Image |
Action |
select('top_link','*',NULL,NULL);
$resultsd = $db->getResult();
//print_r($resultsd);
foreach($resultsd as $row)
{
$cnt = $cnt+1;
if(($cnt%2) == 0)
$class = "darkcss";
else
$class = "lightcss";
$id = $row['id'];
$description = $row['description'];
$imagename = $row['image_name'];
$link = $row['link'];
$db->select('category','*',NULL,"id = '$cat_id'");
$sdasdas = $db->getResult();
$cat_name = $sdasdas[0]['title'];
?>
= $cnt; ?> |
= $description; ?> |
= $link; ?> |
 |
|