"); print(""); print(""); include("php-lib/left_hand_column.php"); print(""); $TableName="sub_sections"; $Query="SELECT * from $TableName where sub_section_id='$id' "; $Result=mysql_db_query ($DBName, $Query, $Link); while ($Row=mysql_fetch_array ($Result)) { $section_name=$Row[section_name]; $section_reminder=$Row[section_vis_name]; $sub_section_name=$Row[sub_section_name]; } print(""); $i=0; $num=3; $cell_width=610/$num; print(""); print(""); $Query="SELECT * from $TableName where section_name='$section_name' order by sub_section_id"; $Result=mysql_db_query ($DBName, $Query, $Link); while ($Row=mysql_fetch_array ($Result)) { if ($i==0) print (""); if ( ($i>0) && ( $i%$num==0) ) print (""); print(""); $i++; } while ($i % $num) { print(""); $i++; } print("

$section_reminder
 
$Row[sub_section_vis_name] 
"); $Query="SELECT * from $TableName where sub_section_id='$id' "; $Result=mysql_db_query ($DBName, $Query, $Link); while ($Row=mysql_fetch_array ($Result)) { if (!$Row[image_filename]) { $sub_section_image=""; } else{$title_text=" title=\"$Row[title_text]\" "; @list($width, $height, $type, $attr)=getimagesize("images_$TableName/$Row[image_filename]"); $sub_section_image=""; } if (!$Row[sub_section_heading]) { $sub_section_heading=""; } else { $sub_section_heading="

$Row[sub_section_heading]

"; } print(""); print(""); print(""); print("

$sub_section_heading$sub_section_image$Row[sub_section_text]

"); } print(""); $i=0; $num=4; $TableName="images_sub_sections_xtra"; $Query="SELECT * from $TableName WHERE sub_section='$sub_section_name' order by id"; $Result=mysql_db_query ($DBName, $Query, $Link); while ($Row=mysql_fetch_array ($Result)) { $title="title=\"$Row[title_text]\" "; if ($i==0) print (""); if ( ($i>0) && ( $i%$num==0) ) print (""); print(""); $i++; } print(""); print("

$Row[caption]

 
"); print("Top
"); include("php-lib/footer_public.php"); ?>