Permalink
Browse files

added forgotten braces

  • Loading branch information...
1 parent 6311742 commit 1bb4bb44ff3003587d0b0c104633c4bda79178ea @DerWaldschrat committed Feb 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Data/index.php
View
2 Data/index.php
@@ -26,7 +26,7 @@
$body = bodyAsJSON();
if (hasAllSetIsset($body, array("categoryid", "value"))) {
$db = db();
- $sql = "INSERT INTO ". DATA . " categoryid, `value`, userid VALUES(?, ?, " . userField("userid") . ")";
+ $sql = "INSERT INTO ". DATA . " (categoryid, `value`, userid) VALUES(?, ?, " . userField("userid") . ")";
$st = $db->prepare($sql);
$st->bind_param("is", $body->categoryid, $body->value);
if (exQuery($st)) {

0 comments on commit 1bb4bb4

Please sign in to comment.