Lets look on how to get the value of a simple html form using php. In this tutorial, we will get the value of each input and display on thesame page when the form is submitted.
We will use the $_GET php superglobal to get the form data.
When to use GET?
Lets look on how to get the value of a simple html form using php. In this tutorial, we will get the value of each input and display on the same page when the form is submitted.
We will use the superglobal $_POST to get the form data. Another alternative will be to use the $_GET superglobal.
When to use POST?
There are so many reasons you may want to know the id of your last inserted row. In this tutorial, we will be adding a new record into our database and we want to echo out the last inserted id.We would be getting our last insert ID using lastInsertId().
The SQL DELETE statement is use to delete a record from a table. We want to remove one of our products from our products table for reason that we are not more selling that product. To delete that product, all we need is its row ID .(WHERE id = 1).
In this tutorial, we will be using php prepared statement to update information in our products table.We will be updating table row with id = 1. We would change the 'product_name' from let say 'Blue Shirt' to 'Yellow Shirt'. Remember , you can only use the sql UPDATE statement to update existing data.
We want to get data from our database. We will be using the sql SELECT statement to achieve this. We have a database table called 'products' with different products. We want to display this products on our webpage. So how can we we achieve this? PHP PDO SELECT Data from MySQL.
This is a simple blog system based entirely on php data objects. This project consist of the following technologies:-
1. A signup and login system for blog authors.
2. An admin system to manage the blogs(delete and edit blogs)
3. A blog comment system.
4. Url seo friendly
Subscribe to receive email newsletters
Once you subscribe, you will be receiving email newsletters from us
Do you want to join the simple css 3 team?
You can write an post tutorials here
Contact us using our contact form and we will get back to you within 24hrs