Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

php object that control mySQL db

Codes here !

Moderators: macek, egami, gesf

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.

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

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 http://ca2.php.net/manual/en/book.pdo.php
User avatar
freshnet
php-forum Active User
php-forum Active User
 
Posts: 252
Joined: Tue Feb 22, 2011 8:19 am
Location: Canada


Return to mySQL & php coding

Who is online

Users browsing this forum: Google [Bot] and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron