add ajax to found form
This commit is contained in:
parent
df470b370f
commit
935d48f6f7
3 changed files with 36 additions and 4 deletions
2
ajax.php
2
ajax.php
|
@ -29,7 +29,7 @@ switch($_GET["action"]) {
|
|||
$errormsg = "all values have to be set";
|
||||
}
|
||||
break;
|
||||
case "insert":
|
||||
case "add_found":
|
||||
if (hasval($_POST["was"]) && hasval($_POST["wann"]) && hasval($_POST["wo"])) {
|
||||
/* Prepared statement, stage 1: prepare */
|
||||
if (!($stmt = $mysqli->prepare("INSERT INTO items(was, wann, wo) VALUES (?, ?, ?)"))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue