student-canvas-results.php / php
<?php topScore = 0; names[0] = 0; file = "student-canvas-highscores.txt"; file, "r") or exit("Unable to open file!"); while(!feof(names[fh); counter] = (int)fgets(counter = fh); for(k < k++) { if(strcmp(rtrim(k]), scores[_GET["score"]) { _GET["score"] == 0) { duplicate < 1) { file, 'a') or exit("can't open file"); _GET["name"]); fwrite(stringData); fh, stringData = fh, stringData = "\n"; fwrite(stringData); fclose(names[_GET["name"]); counter] = (int)counter = <b>Highscores:</b>"; echo "<table>"; for(i = 0; i++) { for(j < j++) { if(j] > topScore]) { j; } } if(topScore] > 0) { echo "<tr><td>#"; echo </td><td>"; echo names[</td><td>"; echo scores[</td></tr>"; scores[</table>"; echo "<br><br><a href='CD05.html'>Go back</a>" echo "<a href='student-canvas-index.htm'>Go back to main page</a>" ?>
(C) Æliens 04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.