PHP Classes

File: src/Ext.php

Recommend this page to a friend!
  Classes of Hicri  >  PHP MySQL Query Builder Class  >  src/Ext.php  >  Download  
File: src/Ext.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP MySQL Query Builder Class
Compose and execute SQL queries on MySQL using PDO
Author: By
Last change:
Date: 6 months ago
Size: 1,033 bytes
 

Contents

Class file image Download
<?php
require_once "autoload.php";
require_once
"constants.php";

use \
qwerty\Database\DatabaseController as DatabaseController;
use \
qwerty\Config\Method as Method;


$db = new DatabaseController(DBHost, DBName, DBUser, DBPassword,connection);


$cn = $db->MysqlConnection();
//$baglanti = $db->PostgresqlConnection();

$method = new Method($cn);

//$veri = $method->Select_all("orders");
/*

$data = array(
    'ShipName' => "deneme",
    'ShipAddress' => "deneme",
    'ShipCity' => "deneme"
);
*/
//$method = $method->Insert("orders",$data);

$id = array(
 
'OrderID',"CustomerID"
);

/*
$data = array(
    'ShipName' => "12",
    'ShipAddress' => "12",
    'ShipCity' => "12"
);


$method = $method->Update('orders', $id, $data);
*/

//$method = $method->Delete('orders',$id);

$data = array(
   
"EmployeeID" => "4"
);
$con = array("!=");
$if = array("AND");

//$a = $method->Select_ch("orders",$id);

$a = $method->Select_wh('orders',$data,$con,$if);

print_r($a);


?>

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