include("../px/includes/db.php");
?>
include("liveheader.php");
?>
|
|
$id = $_REQUEST['id'];
// print $id . ' ';
$result=mysql_query("SELECT * FROM gcpx WHERE gid='$id' ");
while($row=mysql_fetch_array($result)){
// print 'found ';
Print ' ';
Print '' . $row['gcap'] . ' ';
Print $row['gdesc'] . '
';
}
print '';
$result=mysql_query("SELECT * FROM gcpx WHERE gid<'$id' ORDER BY gid DESC ");
while($row=mysql_fetch_array($result)){
$wouldbe = 'images/thumbs/' . $row['gid'] . '_1.jpg';
if( is_file( $wouldbe )) {
$pcount++;
Print '
| ';
if ( $pcount >= 7 ) { break; }
}
}
print ' ';
?>
|
|
|