\n"); $dbh = sqlite_open("/opt/htdocs/database/dcstella.db"); if( ("$game" != "") && ("$code" != "") && ("$effect" != "") ) { # printf(""); sqlite_exec("insert into cheats(game,version,code,effect) values ". "('$game','$version','$code','$effect');",$dbh); $game = ""; $version = ""; $code = ""; $effect = ""; # printf("Code inserted
\n"); } ?> \n", ereg_replace("<","%lt;",$pgame), ereg_replace("<","%lt;",$pversion), ereg_replace("<","%lt;",$pcode), ereg_replace("<","%lt;",$peffect)); } ?>
GameVersionCodeEffect
%s%s%s%s

Game:
Version:
Code:
Effect:

Please enter only valid codes!
The interface works, so there's no test needed. ;-)
There are only a very few sanity checks, so I have to take out fake entries by hand.