SHARE
TWEET

Untitled

a guest Dec 7th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top