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...
Tutorials
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...
Build CRUD Application PHP & Mysql. Edit and sava data
We continue to build our php+mysql applicaiton. Today we will realize opportunity for editing and saving data to database. First of all you need understand, how we make our object unique. The page for every object edit.php. But we will add id player which we are going...
Create e-commerce with php and mysql. Create technical task. Part two
Today we will finish to write technical task.
Build CRUD Application PHP & Mysql. Getting data from several tables
Today we'll continue create our web application. We'll select data from two tables. In last lesson we selected all players from players tables. On players.php page we have got table with three columns. Two of them are situated in another tables ("teams" and...
Build CRUD Application PHP & Mysql. Intro to PDO
Today we'll continue to create our first web app, write function for getting data with php pdo and print this data. First of all we'll consider why code from last lesson is excess. Try...catch block will print error. But if you wont' use try...catch in this situation...
Build CRUD Application PHP & Mysql
Starting from today lesson we will begin to build simplest web application with php and mysql. It will be use sport database, which we created last lessons. Today we'll define structure of our app, write script to connect with database and build html skeleton of our...
Form validation server side
Today we'll consider data validation on server side with build-in php functions. Any html form is potential danger for your project because of information from this form. User not necessary wants to hurt you. He can enter some spaces. Spaces are not a problem, but you...