".PHOTOS."".DETAILS.""; while ($row = mysql_fetch_array($rs)) { $id=$row['id']; if($id<=1) $previousPage="1"; else $previousPage=$id-1; if($id>=275) $nextPage="275"; else $nextPage=$id+1; if($id <10) $imgLink= '00'.$id; else if($id <100) $imgLink= '0'.$id; else $imgLink= $id; if($previousPage <10) $preLink= '00'.$previousPage; else if($previousPage <100) $preLink= '0'.$previousPage; else $preLink= $previousPage; if($nextPage <10) $nextLink= '00'.$nextPage; else if($nextPage <100) $nextLink= '0'.$nextPage; else $nextLink= $nextPage; if($row['lat']>1) $google=GOOGLE; else $google=""; $indexpage.="".$imgLink."".TEMPLE." ".$google." ".ROAD_MAP."". $row['temple_name']."-".DEVARAM." "; } echo $indexpage.""; ?>