connection class

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bananaphp
Forum Newbie
Posts: 2
Joined: Tue Sep 08, 2009 3:25 am

connection class

Post 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
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: connection class

Post 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...
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: connection class

Post by Christopher »

Or just use PDO. It is built into PHP.
(#10850)
Post Reply