forked from GithubBackups/vichan
create.php: make `boards
` insert schema agnostic
This commit is contained in:
parent
b1c76ba120
commit
84822a86f5
2
create.php
Normal file → Executable file
2
create.php
Normal file → Executable file
@ -107,7 +107,7 @@ $query->bindValue(':type', 20);
|
||||
$query->bindValue(':boards', $uri);
|
||||
$query->execute() or error(db_error($query));
|
||||
|
||||
$query = prepare('INSERT INTO ``boards`` VALUES (:uri, :title, :subtitle, NULL, NULL)');
|
||||
$query = prepare('INSERT INTO ``boards`` (`uri`, `title`, `subtitle`) VALUES (:uri, :title, :subtitle)');
|
||||
$query->bindValue(':uri', $_POST['uri']);
|
||||
$query->bindValue(':title', $_POST['title']);
|
||||
$query->bindValue(':subtitle', $_POST['subtitle']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user