Modifications to hiscore scripts

This commit is contained in:
Rob Pearce 2008-10-22 19:45:35 +00:00
parent 63802db4ae
commit 4788612fe1
2 changed files with 10 additions and 1 deletions

Binary file not shown.

View File

@ -17,8 +17,17 @@ $db = sqlite_open("hiscores.db", 0666, $errorstr);
# insert entry
$insert = sprintf("insert into hiscores (score, name, level) values (%d, '%s', %d);",$score, $name, $level);
sqlite_exec($db, $insert);
$rv = sqlite_exec($db, $insert);
sqlite_close($db);
echo "<html>";
if ($rv == FALSE) {
echo "error submitting hiscore\n";
} else {
echo "hiscore submitted.";
}
echo "</html>";
</script>