Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. global $mysqli;
  2. $stmt = $mysqli->prepare("SELECT id, description FROM tbl_page_answer_category WHERE cur_own_id = ?");
  3. $stmt->bind_param('i', $cur_id);
  4. $stmt->execute();
  5. $stmt->bind_result($uid, $desc);
  6.  
  7. mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
  8.  
  9. $stmt = $this->con->prepare("INSERT INTO table(name, quantity) VALUES (?,?)");
  10. $stmt->bind_param("si", $name, $quantity);
  11. $stmt->execute();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement