Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <?php
  2. class ff14picture {
  3. public $FF14 = "";
  4. }
  5. $dbh = new PDO("mysql:host=db5000242150.hosting-data.io; dbname=dbs236483;", "dbu108663", "Nymnismemelol123!");
  6. $select = $dbh->prepare("SELECT * from JSONajax");
  7. $select->execute();
  8. $rows = $select->fetchAll(PDO::FETCH_ASSOC);
  9.  
  10. $e = new ff14picture();
  11.  
  12. if(count($rows) > 0)
  13. {
  14. foreach($rows as $row)
  15. {
  16. $e->FF14 = $row['FF14'];
  17. }
  18. }
  19. echo json_encode($e);
  20.  
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement