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...
Tutorials
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...
Submit form to php
In this lesson you will learn how to submit form to php. Each of you were registering on sites, entering login and password and so on. After this lesson you can submit any data to server and make simple validation. You can submit form to the server with two methods -...
User-Defined PHP Functions
In this lesson we shortly will consider writing custom functions. Who watched this lesson, you wouldn't know something new. But this lesson needs because very soon we will write a lot of our custom functions. Function declaration in php begins from function keyword....
PHP array sorting
In this video we will shortly consider array sorting in php. Array sorting is very important. In php there are a lot of functions for sorting arrays. They satisfy all needs for sorting (sorting arrays by asc or desc order, keys sorting) Also we will write little code,...
PHP loops
In this lesson we will consider basics of php again, namely loops in php. A lot of this you have already known from appropriate lesson in javascript. We will consider for, while, do...while loops I remember, loops reduce repeating code. In real projects loops use in...
PHP. Conditional Operators
Today we will consider conditional operators if, if...else, if...elseif...else. A lot of this you may know from javascript. If..else also has got short syntax. Also we'll try to use switch, which replaces a lot of if.else entities....