Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class ff14picture {
- public $FF14 = "";
- }
- $dbh = new PDO("mysql:host=db5000242150.hosting-data.io; dbname=dbs236483;", "dbu108663", "Nymnismemelol123!");
- $select = $dbh->prepare("SELECT * from JSONajax");
- $select->execute();
- $rows = $select->fetchAll(PDO::FETCH_ASSOC);
- $e = new ff14picture();
- if(count($rows) > 0)
- {
- foreach($rows as $row)
- {
- $e->FF14 = $row['FF14'];
- }
- }
- echo json_encode($e);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement