"; echo "

 

 SHOWING COMPLETE TREKS LIST

"; echo "

  $row[1]
"; $fquery= mysql_query("SELECT * FROM tours where visible = 'yes' AND catid='$row[0]' order by tourid DESC"); $num = mysql_num_rows($fquery); $cols = 3; $rows = $num / $cols; for ($i=0;$i<$rows;$i++) { echo "
"; for ($ie=0;$ie<$cols;$ie++) { echo "\n"; } echo "
"; if ($row = mysql_fetch_row($fquery)) { echo "
$row[2]

"; // main category echo "Duration : $row[4]
"; echo "

details >>

"; } else { echo " "; } echo "

"; } } ?>