Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Let's Play Pretend:
QuerySim and
Aug 28, 2002 @ 12:52:21

Yes, it's true....another article from PHPBuilder.com this soon! You'd think they're making a comeback or something...

Anyway, their latest article talks about simulating database queries to make it easier for you to code the app without having to wait on someone else (like that pesky DBA that no one can ever find) to make the schema that you sent them. Most of it relies on a library from the PHP Fusebox team called PHP QuerySim that allows you to make a file with the info separated by commas and use that like you would your database.

It's a pretty cool system, really - and can really help out in the long run. Just structure your file with the information that you need, and use the QuerySim class and the PEAR functionality to get to your DB and, voila, you're all set to code without having to wait. Then, ideally, when the database does get set up, you can just port the code over, changing what the PEAR database abstraction connects to. This article really does a good job of going into depth about the QuerySim and how to use it. I'd suggest looking into it even if you're not in need of it (yet).

tagged:

Link:


Trending Topics: