PHP Classes

How to Use a PHP MySQL Connection Using a Singleton Object to Access a Database with the Same Credentials Using the Package Lou Wrapper MySQL: Connect to a MySQL server and execute SQL queries

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2025-03-11 (Yesterday) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
Version License PHP version Categories
lou_wrapper_mysql 1.0GNU General Publi...5PHP 5, Databases
Description 

Author

This class can connect to a MySQL server and execute SQL queries.

The class can create a singleton object for each connection with the same database server host, user, password and database name.

The class can also perform several types of database access operations like:

- Connecting and disconnecting to a server using the PHP MySQLi extension

- Executing queries escaping parameter values when necessary

- Fetching results as arrays

- Inserting, updating, and deleting database table records

- Performing database table management operations like copy, rename, truncate, drop tables

- Exporting and importing data to or from CSV files

- Handling transactions

- Logging queries and errors

- Performing string replacements within database columns

- Retrieving database information like table size and column names

- Managing revisions of table data

Picture of António Lourenço
  Performance   Level  
Name: António Lourenço <contact>
Classes: 5 packages by
Country: Portugal Portugal

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file example.php Example Example script
Plain text file Lou_Wrapper_mysql.class.php Class This Wrapper mysql class designed to simplify interactions with MySQL databases

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads  
 0%
Total:0
This week:0