Modifications to hiscore scripts
This commit is contained in:
parent
63802db4ae
commit
4788612fe1
Binary file not shown.
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue