i
PHP Variables
PHP Data Types
PHP Echo & Print
PHP Strings
PHP Numbers
PHP Constants
PHP Operators
PHP if...else...elseif Statements
Switch Statement
PHP Loops
PHP Arrays
Superglobals
PHP Coding Standards
PHP Form Handling
PHP Form Validation
PHP URLs Validation
PHP Form Required Validation
Complete Form Example
PHP File Functions Open/Read
PHP File Create/Write
PHP File Upload
PHP Cookies Handling
PHP Session Handling
PHP filter_var() Function
PHP Validation Filters
PHP Sanitization Filters
Using Filters
Filters Advanced
JSON
PHP Date and Time
MySQL Database
MySQL Connect
MySQL Commands-Creating a Table
MySQL Commands-Inserting The data
MySQL Commands-Prepared Statement
MySQL Commands-Selecting The Data
MySQL Commands-Where and Order By
MySQL Commands-Deleting And Updating The Data
PHP-OOP Introduction
PHP-Classes/Objects
PHP-Constructor/Destructor
PHP-Access Modifiers
PHP-Inheritance
PHP-Inheritance and Protected Access Modifier
PHP-Overriding Inherited Methods
PHP-Final keyword
PHP-Abstract Classes
PHP-Constants
PHP-Traits
PHP-Static Methods and Properties
Introduction to Functions
Defining A function
Returning Values From A Function
Dynamic Function Calls
Variable Scope
Understanding Arguments Or Parameters
Testing For A Function Existence
Returning Multiple Values From A Function
Making practical Use By Building Code Libraries For Code Re-usability
Using Include() And Require()
If you want to delete any record from the database you can use DELETE statement. It is very helpful for managing a website where a customer deletes his account and for some tables you might need to delete his records.
Syntax : DELETE FROM table_name WHERE column_name = value;
For example: DELETE FROM Visitors WHERE visitor_id = 2;
There might be some cases, when a user has entered a wrong value, or he want to change some data like email or phone number etc. For those cases, you can update the records in SQL using UPDATE statement.
Syntax: UPDATE table_name SET column1 = value, column2 = value,.. WHERE column_name = value
For example: A user wants to update his email address then you can use below statement.
UPDATE Visitors SET email = ‘Paul999@example.com’ WHERE name = ‘Paul’;
Don't miss out!