Edit
by Paolo Dodet - 9 years ago (2015-05-20)
I need to feed a blog
| I need to store a blog using a minimalist database class using PDO wrapper. |
Ask clarification
2 Recommendations
This package can store and retrieve database data as objects using PDO.
It provides a base class that connects to a database using PDO.
Other classes can query database tables and retrieve the results as objects with the variables set to the result column names.
It is also possible to insert, update or delete records using the same or newly created objects set with the variables with values for the respective fields that are intended to be added or changed.
| by Pierre Delporte package author 30 - 9 years ago (2015-05-27) Comment
Easy and quick to implement. See the example. |
This class that can execute common MySQL queries using PDO.
It uses the singleton design pattern to connect to a given MySQL database and execute SELECT, INSERT, UPDATE and DELETE prepared queries from lists of parameters that specify the involved tables, fields, values, conditions, etc..
Queries that return results may return them as a single array or or single value.
| by Dave Smith 7620 - 9 years ago (2015-05-20) Comment
This one looks simple and to the point. It has no negative support requests associated with it, so I would start here. |