Guest User

Untitled

a guest
Dec 16th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. public function upd($name, $surname, $group, $date_of_taking, $lib_card, $name_book, $id_lib) : array
  2. {
  3. $result = $this->mysqli->query("UPDATE info SET
  4. name = '".$this->mysqli->escape_string($name)."',
  5. surname = '".$this->mysqli->escape_string($surname)."',
  6. group = '".$this->mysqli->escape_string($group)."',
  7. date_of_taking = '".$this->mysqli->escape_string($date_of_taking)."',
  8. lib_card = '".$this->mysqli->escape_string($lib_card)."',
  9. name_book = '".$this->mysqli->escape_string($name_book)."'
  10. WHERE id = '".$this->mysqli->escape_string($id_lib)."';");
  11. var_dump($result);
  12. return array();
  13. }
Add Comment
Please, Sign In to add comment