Page 1 of 1

connection class

Posted: Tue Sep 08, 2009 3:28 am
by bananaphp
i m making a connection class but not able to access its methods and variables
can anyone tell me how to make a class for connection and queries in php

Re: connection class

Posted: Tue Sep 08, 2009 3:40 am
by onion2k
Why are you bothering? There are loads of really good ones already like ADODB, ADODB Lite, DBI, dbFacile, etc. Just use one of those.

If you're writing one in order to learn more about PHP that's fair enough, but then there's not much point in us giving you a solution...

Re: connection class

Posted: Tue Sep 08, 2009 4:52 am
by Christopher
Or just use PDO. It is built into PHP.