Your Query: ” . $your_query . “
Error: (” . mysql_errno() . “) ” . mysql_error());
$num = mysqli_num_rows($result);

if($num==0)
{ ?> This page will be viewable after race results are processed!

“>Num “>Starts “>Top 5 “>Pts “>Inc 0 AND dd.Series_ID = $S_ID ORDER BY ds.ds_Total_Pts DESC, ds.ds_Wins DESC, ds.ds_T5, ds.ds_T10 DESC, ds.ds_Laps_Led DESC”;
$result = mysqli_query($link, $sql) or die(“A MySQL error has occurred 51.
Your Query: ” . $your_query . “
Error: (” . mysql_errno() . “) ” . mysql_error());
while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC))
{
extract($row);

$BPts = $ds_BPts_Win + $ds_BPts_Laps + $ds_BPts_MLaps + $ds_BPts_Inc;
$PPts = $ds_BPts_IncN + $ds_PPts;
$Pos++;

$Behind = $ds_Total_Pts – $Leader;
$BChase = $ds_Total_Pts – $Chase_Cut;

if($Pos==”1″)
{
$Leader = $ds_Total_Pts;
$Behind = “-“;
}

if($Number>1000)
{
$Number = ltrim($Number,’99’);
}

?>

“>