".$product_id." order by product_id asc"; $rs = mysql_query($sql) or die(mysql_error() . " : ".$sql); return $rs; } # get products inner image details for a previous inner image of that product function getprvinnerimagedetails($product_id, $image_id){ $sql = "select * from rothan_c_gallery_innerimages where product_id = ".$product_id." and image_id<".$image_id." order by image_id desc"; $rs = mysql_query($sql) or die(mysql_error() . " : ".$sql); return $rs; } # get products inner image details for a next inner image of that product function getnxtinnerimagedetails($product_id, $image_id){ $sql = "select * from rothan_c_gallery_innerimages where product_id = ".$product_id." and image_id>".$image_id." order by image_id asc"; $rs = mysql_query($sql) or die(mysql_error() . " : ".$sql); return $rs; } } ?> Rothan Millwork Co. - Commercial Gallery