Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

ezSql PDO Connection

<?php
require 'vendor/autoload.php'; // Needed to load composer autoloader
use ezsqlDatabase; // Load ezSQL Database Class

// FORMAT - DB_HOST/DB_NAME/DB_CHARSET, DB_USER, DB_PASSWORD
$db = Database::initialize('pdo', ['mysql:host=localhost;dbname=ezsql_database;charset=utf8', 'ezsql_user', 'ezsql_password123']);
 
PREVIOUS NEXT
Tagged: #ezSql #PDO #Connection
ADD COMMENT
Topic
Name
4+3 =