Create PHP MVC application. Sessions. Get all orders

Home » Tutorials » PHP+MySQL » Create PHP MVC application. Sessions. Get all orders

We continue to make our simple php mvc application and today we will add sessions mechanism to our application to avoid access to cabinet main page to unauthorized users. Also we will create method, which will get all orders from database with its detail information.

While preparing for this lesson I have found some problem. Instead of cyrillic data I have got question marks. So you need to set right collation in phpmyadmin (see picture example)

Also in db.php (database configuration file) I made some difference to the code (see code below).

Подписаться на рассылку

Будьте в курсе - получайте последние статьи на свой email

Ваша подписка успешно оформлена

Pin It on Pinterest

Share This