1){ $query = $_REQUEST['query']; } //set up some limits $limit = $page * $limitset; $limit = $limit - $limitset; //////////////////////////////////////////////// if(isset($_GET['v'])) { $view = $_GET['v']; mysql_select_db($database_theudb, $theudb); $query_getphotos = "SELECT * FROM photos WHERE category = $view ORDER BY id DESC LIMIT $limit,$limitset"; $getphotos = mysql_query($query_getphotos, $theudb) or die(mysql_error()); $row_getphotos = mysql_fetch_assoc($getphotos); $totalRows_getphotos = mysql_num_rows($getphotos); $query_getgal = "SELECT * FROM photo_galleries WHERE id = $view"; $getgal = mysql_query($query_getgal, $theudb) or die(mysql_error()); $row_getgal = mysql_fetch_assoc($getgal); $query_getTotal = "SELECT count(*) FROM photos WHERE category = $view"; $getTotal = mysql_query($query_getTotal, $theudb) or die(mysql_error()); $row_getTotal = mysql_fetch_assoc($getTotal); $totalRows_getTotal = mysql_num_rows($getTotal); $catID = $row_getphotos['category']; } function imageResize($width, $height, $target) { //takes the larger size of the width and height and applies the //formula accordingly...this is so this script will work //dynamically with any size image if ($width > $height) { $percentage = ($target / $width); } else { $percentage = ($target / $height); } //gets the new value and applies the percentage, then rounds the value $width = round($width * $percentage); $height = round($height * $percentage); //returns the new sizes in html image tag format...this is so you //can plug this function inside an image tag and just get the return "width=\"$width\" height=\"$height\""; } ?>
» If you did login then your session must have expired. Simply login again above.
» View membership options below:
$num){ $through = $total; } if($page > 1){ $from = $limit +1; } else { $from = $limit; } if($from == 0){ $from = $from +1; } ?>
400 ) { ?> >
Posted:
$num){ $through = $total; } if($page > 1){ $from = $limit +1; } else { $from = $limit; } if($from == 0){ $from = $from +1; } ?>
400 ) { ?> >
Posted:
|
||||