PHP Classes

PHP OOP PDO Database Class Example: Demonstration of how to access databases using PDO

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2019-07-16 (5 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 228 This week: 4All time: 7,966 This week: 82Up
Version License PHP version Categories
oopregister 1.0.0The PHP License5PHP 5, Databases
Description Author

This class is a simple demonstration of how to access databases using PDO.

It shows how you can connect to a MySQL database server using PDO.

The class can also show how to insert a user record in database table using prepared queries, checking first if there is already a record for an user with the same user name or email address.


PDO Class
I need a class to connect to my db (mysql). Now my code is a old

  Performance   Level  
Name: Dev Sharma <contact>
Classes: 3 packages by
Country: India India
Age: 17
All time rank: 3512244 in India India
Week rank: 95 Up16 in India India Up
Innovation award
Innovation award
Nominee: 1x


  Files folder image Files  
File Role Description
Plain text file class.user.php Class Class source
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:4
All time:7,966
This week:82Up