Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class checkLog{
- protected $db;
- function __construct(){
- $this->db = new PDO("mysql:host=localhost;dbname=monoart","root","");
- }
- public function CreateNewsGDR(){
- $statement = $this->db->query("SELECT * FROM images");
- while($row = $statement->fetch(PDO::FETCH_ASSOC)){
- var_dump($row);
- }
- }
- }
- $checkLog = new checkLog();
- $checkLog->CreateNewsGDR();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement