PHP Classes

File: examples/testtable.php

Recommend this page to a friend!
  Classes of Jorge Castro   PHP PDO One   examples/testtable.php   Download  
File: examples/testtable.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP PDO One
Access to database with PDO and run common queries
Author: By
Last change: * 1.23 2020-03-10
* method toMeta()
Date: 4 years ago
Size: 378 bytes
 

Contents

Class file image Download
<?php
use eftec\PdoOne;

include
"../vendor/autoload.php";


// connecting to database sakila at 127.0.0.1 with user root and password abc.123
$dao=new PdoOne("mysql","127.0.0.1","root","abc.123","sakila","");
try {
    echo
"<h1>connection. The instance 127.0.0.1, base:sakile user:root and password:abc.123 must exists</h1>";
   
$dao->connect();
} catch (
Exception $ex) {

}