Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Person {
- private $firstname;
- private $lastname;
- private $email;
- private $password;
- public function __construct() {
- }
- public function getName() {
- }
- public function registerPerson($fn, $ln, $em, $pw) {
- }
- public function loginPerson($em, $pw) {
- }
- public function changeLastName($cln) {
- }
- }
- class mysqli_database {
- private $_link;
- public function connect($server='localhost', $username='root', $password='geheim', $database = 'systeem_db') {
- $this->_link = mysqli_connect($server, $username, $password, $database);
- }
- public function error() {
- return mysqli_error($this->_link);
- }
- public function errno() {
- return mysqli_errno($this->_link);
- }
- public function escape($string) {
- return mysqli_real_escape_string($this->_link, $string);
- }
- public function query($query) {
- return mysqli_query($this->_link, $query);
- }
- public function fetchArray($result, $array_type = MYSQL_BOTH) {
- return mysqli_fetch_array($result, $array_type);
- }
- public function fetchRow($result) {
- return mysqli_fetch_row($result);
- }
- public function fetchAssoc($result) {
- return mysqli_fetch_assoc($result);
- }
- public function fetchObject($result) {
- return mysqli_fetch_object($result);
- }
- public function numRows($result) {
- return mysqli_num_rows($result);
- }
- public function close() {
- return mysqli_close($this->_link);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement