File: app.php

Recommend this page to a friend!
  Classes of Braun Okoi Boniface  >  CRUDify PHP CRUD Class MySQLi  >  app.php  >  Download  
File: app.php
Role: Example script
Content type: text/plain
Description: Example script
Class: CRUDify PHP CRUD Class MySQLi
Perform operations to manipulate MySQL records
Author: By
Last change:
Date: 1 month ago
Size: 618 bytes
 

 

Contents

Class file image Download
<?php
session_start
(); //Optional if you know how to start your session outside this file

function loadClasses($class) {
   
$path = "./classes/";
    require_once(
"{$path}{$class}.php");
}

spl_autoload_register('loadClasses');

//Instantiating the CRUD Class
$crud = new CRUD;

//Making Connection to Database
$conn = $crud->connect($server, $db_user, $db_password, $db);

/**
 * Using CRUDify add() method to add data to databse
 * $crud->add($conn, 'db_table', $_POST, $format, false)
 */
/**
 * Using CRUDify add() method to add data to databse
 * $crud->update($conn, 'db_table', $_POST, $format, false)
 */


For more information send a message to info at phpclasses dot org.