Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  1. <?php
  2.         class checkLog{
  3.                 protected $db;
  4.                 function __construct(){
  5.                        $this->db = new PDO("mysql:host=localhost;dbname=monoart","root","");
  6.                 }
  7.                 public function CreateNewsGDR(){
  8.                         $statement = $this->db->query("SELECT * FROM images");  
  9.                         while($row = $statement->fetch(PDO::FETCH_ASSOC)){  
  10.                                 var_dump($row);  
  11.                         }
  12.                 }
  13.         }
  14.         $checkLog = new checkLog();
  15.         $checkLog->CreateNewsGDR();
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement