Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- abstract class SQL {
- public abstract function connect($host, $user, $password, $database);
- public abstract function query($query);
- public abstract function fetch_array($resource);
- public abstract function fetch_assoc($resource);
- public abstract function fetch_object($resource);
- public abstract function fetch_row($resource);
- public abstract function affected_rows();
- }
- ?>
- SQL::connect($host...) {
- // we make our class here
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement