Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.89 KB | None | 0 0
  1.             $query = $pdo->prepare("
  2. INSERT INTO events_informations
  3. (miejsce, r, m, d, rmd, godz, min, gm, tytul, tresc, link, obrazek)
  4. VALUES
  5. (:miejsce, :r, :m, :d, :rmd, :godz, :min, :gm, :tytul, :tresc, :link, :obrazek)
  6. ");
  7.  
  8.             $query->bindValue(':miejsce', $placeStreet);
  9.             $query->bindValue(':r', $year);
  10.             $query->bindValue(':m', $month);
  11.             $query->bindValue(':d', $day);
  12.             $query->bindValue(':rmd', $yearMonthDay);
  13.             $query->bindValue(':godz', $hour);
  14.             $query->bindValue(':min', $minute);
  15.             $query->bindValue(':gm', $hourMinute);
  16.             $query->bindValue(':tytul', $title);
  17.             $query->bindValue(':tresc', '');
  18.             $query->bindValue(':link', $link);
  19.             $query->bindValue(':obrazek', $imagePath);
  20.  
  21.             echo $query->queryString;
  22.  
  23.  
  24.             $query->execute();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement