0) { $prev_id = mysql_result($picsresult, $currindex - 1, 0); $prev_name = mysql_result($picsresult, $currindex - 1, 1); $prev_filename = mysql_result($picsresult, $currindex - 1, 2); } if ($currindex < ($numpics - 1)) { $next_id = mysql_result($picsresult, $currindex + 1, 0); $next_name = mysql_result($picsresult, $currindex + 1, 1); $next_filename = mysql_result($picsresult, $currindex + 1, 2); } $last_id = mysql_result($picsresult, $numpics - 1, 0); $last_name = mysql_result($picsresult, $numpics - 1, 1); $last_filename = mysql_result($picsresult, $numpics - 1, 2); // get the id's of all categories this picture belongs to $query = "SELECT cat_id FROM pic_cat WHERE pic_id = ". $pic; $catsresult = mysql_query($query); // we can now proceed with filling in the page content ?> Rick's photos/<? echo $picrow['name'] ?>





"; if ($pcrow[3] == $cat) echo "". $pcrow[0] .""; else echo $pcrow[0]; echo ""; if ($pcrow[1] == TRUE) { // this category has pictures, show how many echo " (". $pcrow[4] .")
"; } else { echo "
"; // get all subcategories $query = "SELECT id FROM category WHERE parent = ". $catid ." ORDER BY name_short"; $result = mysql_query($query); // recursive call to print subcategories while ($pcsubcatrow = mysql_fetch_array($result)) printcat($pcsubcatrow[0], $cat, $showlevel, $refnostats); } } } if ($branch == 2) printcat(2, $cat, $catrow['level'], $refnostats); else printcat(2, $cat, 0, $refnostats); if ($branch == 3) printcat(3, $cat, $catrow['level'], $refnostats); else printcat(3, $cat, 0, $refnostats); if ($branch == 4) printcat(4, $cat, $catrow['level'], $refnostats); else printcat(4, $cat, 0, $refnostats); if ($branch == 34) printcat(34, $cat, $catrow['level'], $refnostats); else printcat(34, $cat, 0, $refnostats); ?>
0) { ?>
Up
"; echo $catrow['name_short'] ." » ". stripslashes($picrow['name']); ?>
Prev Next Slideshow

0) { ?> " href="picture.php?pic=&cat=" alt=" Previous image " title=" Previous image " /> " href="picture.php?pic=&cat=" alt=" Next image " title=" Next image " />
  <? echo stripslashes($picrow['name']); ?>  

 - 
Tags:  ". $catrow['name_short'] ." "; } ?>     |   Hits:


0) { ?>
Comments:



Leave a comment: