20:47:15
"; echo ""; echo "
LIVE ".date("d-", strtotime($myrow[dadata])).date("d/m/Y", strtotime($myrow[adata])); echo "
"; // ================ SE LIVE =========== if($pg!="review"){ // elenco partecipanti echo "
\n"; echo "\n"; echo ""; $sql="SELECT partecipanti.*, if(substring(idgara,1,1)='S', substring(idgara,2)*1000, idgara*1) as ordine FROM racelink.partecipanti INNER JOIN racelink.gare ON partecipanti.gara=gare.gara WHERE flag_racer=1 AND gare.gara='$gara' ORDER BY ordine"; // per test //$sql="SELECT partecipanti.*, if(substring(idgara,1,1)='S', substring(idgara,2)*1000, idgara*1) as ordine FROM racelink.partecipanti INNER JOIN racelink.gare ON partecipanti.gara=gare.gara WHERE flag_racer=1 ORDER BY ordine"; $result = mysqli_query($db,$sql); While ($myrow = mysqli_fetch_array($result)){ if($myrow[flag_racer]==1){ if($rbg=="#F6F8F9"){ $rbg="#FFFFFF"; }else{ $rbg="#F6F8F9"; } echo "
Nr.Drivers
  $myrow[idgara] "; echo "   "; if($myrow[dr_cognome]) echo htmlentities($myrow[dr_cognome]); if($myrow[codr_cognome]) echo " - ".htmlentities($myrow[codr_cognome]); if($myrow[dr_naz]) " ($myrow[dr_naz])"; echo ""; } } echo "
"; }else{//=============== REVIEW ============================ echo "\n"; echo "
REVIEW
"; echo "
"; echo "\n"; echo "
  "; echo " "; echo " "; echo "
"; echo "
Preparing data