Hi,
I am trying to find the best (best as in fastest and OOP) MySQL connection wrapper to connect, query, insert, delete and query a MySQL DB.
I want to do this so I don't have to keep flipping from one or two that I have which are sluggish and also doesn't do everything I need.
I am coming from a JAVA background with a little experience and I learn well from seeing code.
I would just love to see some code that will do the above in a clean and efficient manner.
I also want to do this very OOP style.
My questions are:
- do I need abstract classes or interfaces or is that overkill?
Also, is it a good idea to keep the db user / pass etc. in the database wrapper class? Or, would they be better off in a config file which is included?
I have been away from programming for almost two years and would very much appreciate some guidance and I am not so much asking for a handout in regards to code, but, to get me started again, could someone please give me a little guidance here, as in what I need to do with perhaps a bit of code?
I want to make this class fully OOP with try / catch blocks etc.
Thanks in advance. I really appreciate any help you guys can give.