Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 10-20-2007, 10:57 PM pdo with mysql
Super Talker

Posts: 130
Trades: 0
I've never used pdo and i'm trying to get it to work with mysql. I have pdo installed and I'm now wondering how to enable pdo with mysql. I've read that it's possible with pecl, but i couldn't find how to do that. thanks in advance.
__________________
flann

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
flann is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-20-2007, 11:46 PM Re: pdo with mysql
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
As far as I know there is no way to directly store an object in a database without a plugin using PHP/MySQL. You can store all of its constructors in a database and use that to build the object. Of course there are plugins that simplify the process.

Generally when I have an object that I need stored in a database I just create a table for it and create columns for all of the constructors and attributes. Then when I need to I build the object from the database entries (using setters for any attributes that were not in the constructor).
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Reply     « Reply to pdo with mysql
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09577 seconds with 12 queries