repo.or.cz
/
asis23-votoe-server.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Make `preflight` request pass okay
[asis23-votoe-server.git]
/
delete_candidates.php
blob
6a4ae9aeca5996cff87d68d87bfc313d929cb38c
1
<
?php
2
3
function
handle_request
(
$id
,
$input
) {
4
$db
=
new
SQLite3
(
'database.sqlite'
);
5
$db
->
exec
(
"DELETE FROM candidatos"
);
6
$db
->
exec
(
"DELETE FROM votos"
);
7
$db
->
close
();
8
}