php object that control mySQL db

Codes here !

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Thu Sep 13, 2012 8:59 am

php object that control mySQL db

Postby phoenix35 » Thu Sep 13, 2012 9:15 am

Hi all,

I wonder if there is a posebility to create an onject that completly control mysql db.
meaning inserting, deleate, selecting etc.
I know that fetch ca help and all...
but I was wondering if and object can log in to the db and thrue it I'll be able to control the db without calling it all the time.

if u anderstood me... I'll be hapy for your suggestions.


User avatar
php-forum Active User
php-forum Active User
Posts: 335
Joined: Tue Feb 22, 2011 8:19 am
Location: Canada

Re: php object that control mySQL db

Postby freshnet » Thu Sep 13, 2012 11:04 am

You can use PDO and create a new instance of the PDO class to control the database, is that what you mean? Take a look at the manual pages for PDO

Return to “mySQL & php coding”

Who is online

Users browsing this forum: Baidu [Spider] and 5 guests