daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest May 16th, 2018 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function adaugareImagine($img, $user_id) {
  2.     $link = conectare_bd();
  3.     $img = testData($img);
  4.     $user_id = testData($user_id);
  5.     $img = mysqli_real_escape_string($link, $img);
  6.     $user_id = mysqli_real_escape_string($link, $user_id);
  7.     $query = "insert into images values(NULL, '$img', $user_id)";
  8.     return mysqli_query($link, $query);
  9. }
RAW Paste Data
Top