Skip to content

Instantly share code, notes, and snippets.

View 24Ryou's full-sized avatar
🪐
always learning....

ali 24Ryou

🪐
always learning....
View GitHub Profile
<?php
// why PDO
// PDO provides a data-access abstraction layer
// PDO does not provide a database abstraction -->
// Full Structure of PDO
// PDO {
// __construct ( string $dsn [, string $username [, string $password [, array $driver_options ]]] )
// bool beginTransaction ( void )
// bool commit ( void )
<?php
/* -------------------------------- functions ------------------------------- */
// get backup of tabels in database PDO
function backup_tables($DBH, $tables) {
$DBH->setAttribute(PDO::ATTR_ORACLE_NULLS, PDO::NULL_NATURAL);
//Script Variables
$compression = false;