PHP Classes

File: example/index.php

Recommend this page to a friend!
  Classes of Hicri   PHP MySQL Connectors   example/index.php   Download  
File: example/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP MySQL Connectors
Execute MySQL and PostGreSQL queries using PDO
Author: By
Last change:
Date: 11 months ago
Size: 654 bytes
 

Contents

Class file image Download
<?php

require __DIR__ . '/../vendor/autoload.php';


use
slvler\mysqlconnectors\Constant;
use
slvler\mysqlconnectors\Config\Method;
use
slvler\mysqlconnectors\Database\DatabaseController;


$Constant = new Constant();

$db = new DatabaseController($Constant->showDBHost(), $Constant->showDBName(), $Constant->showDBUser(), $Constant->showDBPassword(), $Constant->showConnection());

$connection = $db->MysqlConnection();
$method = new Method($connection);

$example = $method->Select_all("orders");



$data = array(
   
'ShipName' => "deneme",
   
'ShipAddress' => "deneme",
   
'ShipCity' => "deneme"
);

$method = $method->Insert("orders",$data);

?>