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!
Parse error: parse error, unexpected T_VARIABLE, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/16/d107262476/htdocs/swigg/sampler/index.php on line 5
I got my first class working, and it will save me a little code for when I make calls to my database. I have to say I wish my main webserver was running PHP5, it's so nice to develop on my system, but then when I upload, I have to change stuff around to get it working...so annoying.
Anwyays, again thanks, you got me started on simple OO...McGruff would be so proud
The debate of the need for database abstraction layers, such as ADOdb has been discussed before.If you aare new to database handling in PHP I would recommend you learn how to do it using core PHP before you look at database abstraction layers. Who knows you may get a job where ADOdb is not allowed or they have their own abstraction layer. Know the basics and implementing ADOdb becomes easier.
Well by no means am I a pro, but I know how to work with mysql from php. My book actually taught me with pear, but I changed to just using mysql_functions.
I really only use connect, select_db, query, and fetch_array.
I guess I'll check out ADOdb then, if nothing else, can't hurt to learn something new.
I don't think i have ever heard of anyone who went straight into ADOdb without first learning php's mysql module.
I just find it easier to work with, in fact, if you ever want to change databases, no need to screw with your code. I think most companies would admire that bennefit don't you? (I know mine does).