We continue to develop our php mvc app and we will make authorization mechanism in our app today.Last lesson we created form. Today we'll make some changes and also dynamic avatar image changing depending on the user entered data. First of all we must create .htaccess...
PHP + MySQL
Create php MVC application. Configuration files and creating routing file
Today we will begin to write code of our application. We'll write configuration files, database connection class and routing class. Also we'll create parent controller, model and view classes and controller and template for app main page. First of all we need to start...
Create php mvc app. Files and folders structure
Today we will create files and folders structure of our php mvc project. You can watch it in this link. First of all I'll show you how to make database backup with phpmyadmin. It has Export tab, which allows you to make flexible settings for backup file. You can set...
Create php MVC app. Create database
In last lesson we began to create our PHP MVC application. Today we will create database with phpmyadmin using. Our database will be consist of 5 tables: roles users orders products productsInOrders - linked table between products and orders. We will create links...
Create simple php mvc app. Work plan
In last lessons we considered basics principles of OOP in PHP. To summarize this topic, I decided to make simple web app with using of OOP paradigm. Besides our app will be based on modern, actual approach in app design - MVC (Model-View-Controller). Our app will be a...
Cookie and SQL injections
In this lesson we'll consider COOKIE, which is similar with SESSIONS. Also we'll discuss problem with safety - SQL injections. COOKIE is similar with SESSIONS. You can store any data of application in cookie. But what is difference between cookie and session? Cookie...
PHP sessions
Today we will discuss sessions in php. It helps browser to identify user in different pages. We will apply session in our web application. First of all we call session_start function, which starts session. It is very important, that this function must be called before...
Build CRUD Application PHP & Mysql. Remove information from application
In this lesson we'll finish building web application. We only need to write function for delete data. We will use similar approach while writing function for delete. We need not any form for delete....
Build CRUD Application PHP & Mysql. Add information to database
We continue to build php+mysql web application. In this lesson we realize mechanism of adding information to database through interface. First of all we will add form to players.php. There will two fields in our form - player name and country (dropdown list). I...