All Questions
10 questions
2
votes
1
answer
326
views
PHP OOP: Configuring MySQL DB & query w/ Twig
I decided to up my PHP game and learn some OOP.
I am re-building my website from procedural to OOP, but since I don't want to use a full framework I fiddle with some components.
As a router I use ...
1
vote
3
answers
594
views
Filtering data from MYSQL database based on parameters passed with POST request
I am working on a PHP MVC project for my portfolio. Its an web app where you can store contacts (email and phone number). I am having trouble with filtering contacts based on filter form that has 3 ...
1
vote
2
answers
168
views
Session Control
I am implementing my first app using MVC.
I would like to know if the approach I thought for the session system is a good and scalable one.
Well, basically a session is stored in my MySQL database ...
5
votes
1
answer
8k
views
PHP, MySQL quiz application
I'm working on a quiz application for training purposes and I think I'm done with most of it.
However, I'm not comfortable with what I've done: it seems to be too complicated and unprofessional, and ...
1
vote
1
answer
8k
views
Database connection in MVC model
I followed the tutorial Build a PHP MVC Application and have implemented a database connection. I made a seperate database connection class and I call it in the controller.
It works, but now I have ...
1
vote
2
answers
317
views
Method to get user information (OOP / MVC approach)
I coded a small user script with PHP. I'm improving the script, learning from my mistakes. I recently learned about object oriented programming and wrote 2 big god classes (user class and message ...
3
votes
2
answers
142
views
MySQL natural search and like search
I have written two queries for searching, but I want to simplify them as it seems needed.
...
2
votes
1
answer
219
views
Reducing the loading time of a page
I'm using PHP, MySQL, Smarty, jQuery, etc. for my website. I'm using an MVC architecture to develop the website. Now in one of the functionality I'm fetching a large amount of data and perform some ...
2
votes
3
answers
1k
views
Look over my code for PDO and MVC
I'm building this website with PDO and Pattern MVC. I'm currently working on the login page and would like to know if this structure is correct for MVC pattern. I'd also like your opinions and ...
2
votes
1
answer
3k
views
Structure pages mvc + oop
I am developing a website and I want to use PDO and MVC.
Before, I was coding in procedural MySQL, but I'm starting to understand the object-oriented programming.
My problem is the following:
If I ...