Example:
PlayerA score: 5
PlayerB score: 7
PlayerC score: 0
with ranking php script ->
PlayerB score: 7
PlayerA score: 5
PlayerC score: 0
Here are some notes:
For the php code the players score looks like this
Code: Select all
$file=("scorecard.txt");
$fileget=file_get_contents($file);
$PlayerAwins = get_data ($fileget, "PlayerAwins = ");
$PlayerBwins = get_data ($fileget, "PlayerBwins = ");
$PlayerCwins = get_data ($fileget, "PlayerCwins = ");Code: Select all
imagettftext ($im, 11, 0, 100, 212, $black, $font, $PlayerAwins);
imagettftext ($im, 11, 0, 200, 212, $black, $font, $PlayerBwins);
imagettftext ($im, 11, 0, 300, 212, $black, $font, $PlayerCwins);Thanks