British History
heading){ if($check != ''){echo' | ';} echo"$row->heading\n"; $check = $row->heading; } } mysql_data_seek($q, 0); echo'
British Sport Histories: '; while($row = mysql_fetch_object($hist)){ $count = 1; $url = urlencode($row->TYPE); echo"$row->title | \n"; $count ++; } ?> History of Golf
heading){// heading once for each set of articles if($check != ''){echo'';} echo"$row->heading
\n";
$check = $row->heading;
}
$desc = '';
$description = explode(' ', $row->article);
$num = (count($description) < 50) ? count($description) : 50;
for($i=0; $i<$num; $i++){$desc .= $description[$i].' ';}//showing 1st 50 words of article
if(!empty($row->subheading)){echo"$row->subheading
\n";}
echo "$desc... more
\n";
}
?>