Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php
  2. abstract class SQL {
  3. public abstract function connect($host, $user, $password, $database);
  4. public abstract function query($query);
  5. public abstract function fetch_array($resource);
  6. public abstract function fetch_assoc($resource);
  7. public abstract function fetch_object($resource);
  8. public abstract function fetch_row($resource);
  9. public abstract function affected_rows();
  10. }
  11. ?>
  12.  
  13. SQL::connect($host...) {
  14. // we make our class here
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement