\n "; include "oldsite_header.inc"; ?>
"; Echo "\n"; Echo ""; } $result = mysql_query("select winner_name , loser_name , winner_score , loser_score from matches WHERE loser_name='$playername'"); while(list($winner_name , $loser_name, $winner_score , $loser_score)= mysql_fetch_row($result)) { echo ""; } } //end if playedmatches>0 */ ?>

Joe's Coaching Academy Player Profile

Player NameMatches PlayedTotal ScoreTotal Score AgainstPointsIn a match?
" . $playername . "" . $matchesplayed . "" . $total_score . "" . $total_score_against . "" . $points . "" . $inmatch . "
"; if ($picture<>"") { echo ""; } ELSE { echo " Email us a Picture
mike@joejohnson.co.uk"; } Echo "
   Avarage score per game= "; if ($matchesplayed > 0) { echo " " . round($total_score/$matchesplayed) . "
   Average Score Against = " . round($total_score_against/$matchesplayed); } Else Echo " No Matches played so I cannot calculate"; Echo "

" . $comments . "

"; if ($break>0) { echo "Highest Break " . $break . "

"; } Else { Echo "We don't know this players highest break
If this is your page please email us your highest break
"; } // current working on get dob and work out age getage($dob); } Echo "

"; /* list of players played so far $result = mysql_query("select winner_name , loser_name , winner_score , loser_score from matches WHERE winner_name='$playername'"); while(list($winner_name , $loser_name , $winner_score , $loser_score)= mysql_fetch_row($result)) { echo "
Won against " . $loser_name . " " . $winner_score . " points to " . $loser_score . "
Lost against " . $winner_name . " " . $winner_score . " points to " . $loser_score . "

$currentmonth){ $age = ($currentyear - $yearofbirth)-1; } else { $age = ($currentyear - $yearofbirth); } if($monthofbirth==$currentmonth){ if($dayofbirth<=$currentday){ $age = ($currentyear - $yearofbirth); } else { $age = ($currentyear - $yearofbirth)-1; } } if ($currentyear<>$age) { Echo $age . " Years of age"; } Else { Echo "We do not know this players age.
If it's you email us your date of birth"; } if($dayofbirth==$currentday){ Echo " TODAY!!
HAPPY BIRTHDAY!!!!!
"; } // return $age to where it was called from .. I cannot get this to work unless I global it return $age; } switch($op) { case "endmatch": endmatch($matchid , $player_one_id , $player_two_id , $player_one_name , $player_two_name , $player_one_score , $player_two_score); break; default: main(); break; } ?>