PHP Classes

File: examples/testtable.php

Recommend this page to a friend!
  Classes of Jorge Castro   DaoOne   examples/testtable.php   Download  
File: examples/testtable.php
Role: Example script
Content type: text/plain
Description: Example script
Class: DaoOne
Access MySQL databases using the MySQLi extension
Author: By
Last change:
Date: 4 years ago
Size: 370 bytes
 

Contents

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

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


// connecting to database sakila at 127.0.0.1 with user root and password abc.123
$dao=new DaoOne("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) {

}