PHP Classes

File: Test/register_user.php

Recommend this page to a friend!
  Classes of Stanley Aloh   Text Driven Database using PHP OOP   Test/register_user.php   Download  
File: Test/register_user.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Text Driven Database using PHP OOP
Create and manage database tables stored in files
Author: By
Last change:
Date: 1 year ago
Size: 455 bytes
 

Contents

Class file image Download
<?php
   
require_once __DIR__ . '/bootstrap.php';
   
   
//current database folder to access
   
$database = DBFactory::get('stanDatabase');

   
   
//$database->new_table('stanliwise', ['name', 'email', 'password'], 'email');

   
$table = $database->get('User');
   
var_dump($table->get_metadata());
   
$table->updateById(2, ['name' => 'kolawole', 'id' => 3]);
    echo
$table->get_error(), "\n";
   
var_dump($table->selectById(2));