All Questions
4 questions
2
votes
1
answer
447
views
PHP Mad Libs with OOP and SQL
I've been learning PHP and I've just gotten into using OOP. Classes/objects/methods etc. My end goal is to take an old Mad libs program I did with PHP, and convert it to OOP. The gist of the project ...
5
votes
3
answers
551
views
Running a MySQL query with an admin class
This is my admin class, DB class and how I use OOP.
I am looking for ways to improve my code to make better use of OOP. Please help me if you think I can improve my code in some way.
db.class.php
<...
3
votes
1
answer
2k
views
PHP/MySQL - OOP database class
I use this database class in a CMS, just a project to learn OOP. Would like to have some review on how to improve it, what should I change, add, remove?
...
5
votes
2
answers
24k
views
MySQL database connection in the constructor
I'm an absolute beginner in PHP OOP in search of the "Holy Grail" of connecting to MySQL database once and reusing this connection for the whole site.
classes/db.php
...