
Install the tools needed to run PHP, including zap, on Windows, Linux, or Mac, and set up a code editor and MySQL for a local site.
Explore basic html structure by using heading and paragraph tags, building pages with the head and body sections, and understanding title and meta information for search engines.
Learn the basics of CSS: select elements like body and headings, apply properties such as background color and text color, and use hex color codes to style web pages.
Discover how CSS controls layout, color, and typography, and adapt pages with responsive design for mobile and desktop. Learn to reuse a single CSS file across pages using selectors.
Learn how CSS selectors target elements by tag name, id, and class, apply styles via an external CSS file, and reuse blue and yellow classes to customize multiple elements.
Learn how to apply color in CSS to text, background and borders using color names, hex, rgb/rgba, and hsl/hsla values, including transparency and border examples.
Explore how CSS width and height respond to pixels and percentage units, with auto and inherit behaviors, max/min constraints, and multi-column layouts.
Learn how width and height inherit values from parent elements using the CSS inherit property, with examples showing percentage-based sizing and nested divs.
Explore how to build web page layouts using css and divs, applying floats, define flexible two-column widths like 80/20 or 60/40, and use repeating patterns and backgrounds for responsive designs.
Learn to build a navigation bar with CSS using an unordered list, remove bullets, float items, style anchors, and apply an active state for the current page.
Learn the core PHP data types, including strings, integers, floats, booleans, arrays, objects (explicitly declared with a class), resources, and null, with examples of declaring values and checking their types.
Build a simple calculator in PHP using a form with the get method and PHP superglobals to read two numbers and an operator, then display the result.
Learn PHP comparison operators, including equal, not equal, identical, not identical, and the spaceship operator, plus greater than and less than with practical examples.
Here is the code for this lecture
<?php
// Logical Operators
$a = 56;
$b = 67; // int
echo "AND <br/>";
if($a >= 56 and $b === 67){
echo "Correct";
}else{
echo "One or both conditions are not correct";
}
echo "<br>";
$name = "Mohan";
$pwd = "abc123";
if($name == "Mohan" && $pwd == "abc1234"){
echo "Welcome ". $name;
}else{
echo "incorrect credentials";
}
echo "<hr/> OR <br/>";
$u = 23;
$v = 45;
if($u == 23+1 || $v == 90 - 45 * 2 ){
echo "Any one or both conditions are correct";
}else{
echo "both conditions are incorrect";
}
echo "<hr/> XOR <br/>";
if($u == 23 + 1 xor $v == 45 + 1 ){
echo "Any one condition is correct";
}else{
echo "both conditions are correct or incorrect";
}
echo "<hr/> NOT <br/>";
if(!$u == 23){
echo "U is not 23";
}else{
echo "U is 23";
}
echo "<br/>";
// if you want to check if a variable is set or not
if(!isset($x)){
echo "x is not set";
}else{
echo "x is set";
}
?>
Explore PHP string operators, including the dot operator for joining strings and the concatenation assignment .=, learn to combine multiple strings, manage spaces with variables.
Explore nested for loops and the for loop syntax, including initialization, condition, and increment. See inner and outer loops, array value retrieval, and pattern printing.
FOR LOOP
When you have to execute a block of code a fixed number of times. <br>
<?php
for($i=1; $i<=10; $i++){
echo $i . "<br/>\n";
}
?>
<hr>
Reveresed Order <br>
<?php
for($i=10; $i>=1; $i--){
echo $i . "<br/>\n";
}
?>
<?php
$num = 8;
for($i=1; $i<=10; $i++){
echo $num . " x " . $i . " = " . $num * $i . "<br>";
}
?>
-> Learning PHP for Web Development - Slidescope <br>
-> LOOPS IN PHP <br><hr>
WHILE LOOP <br>
To execute a given block of code as long as the given
specified condition is true.
while(condition){
code to be executed;
}<br>
<?php
$i = 1;
$num = 4;
while($i <= 10){
echo "$num x $i =" . $num*$i . "<br>";
$i++;
}
echo '<hr>';
$cars = array('maruti','honda','hyundai','bmw','audi','datsun');
$j = 0;
while($j < count($cars)){
if($j == 2){
$nth = "nd";
}else if($j == 3){
$nth = "rd";
} else{
$nth = "nth";
}
echo "$j $nth car is ". $cars[$j] . "<br>";
$j++;
}
?>
-> Learning PHP for Web Development - Slidescope <br>
-> LOOPS IN PHP <br><hr>
DO WHILE LOOP <br>
If the specified condition is not fulfilled, while loop will not run at all,
DO WHILE loop will run atleast one time and then execute a given
block of code as long as the specified condition is true. <br>
<hr>
<?php
$i = 0;
do {
echo "$i HELLO <br>";
$i++;
}
while($i <= 6)
?>
<hr>
do {
code to be executed
}
while(condition)
while(IsFileSizeLessThan2MB())
{
AppendMoreData()
}
take input from use
check > 0
Explore bootstrap, the open source CSS and JavaScript toolkit for building responsive websites fast, using CDNs and common classes like container and container-fluid.
Create a responsive bootstrap layout using the twelve-column grid, md breakpoints, and equal or varied columns; implement image fluidity, icons, padding, and banner styling.
Design a responsive hotel registration form using Bootstrap forms, form groups, inputs, selects, and validations, building a registration page for hotel partners to register and log in.
Learn how to create a MySQL database and tables with phpMyAdmin, define primary keys, data types, and constraints, and insert sample hotel management data for scalable web apps.
The resources file in the chapter are somewhat similar to the files shown in tutorial.
The resources file in the chapter are somewhat similar to the files shown in tutorial.
Note: Code in resources is somewhat similar to code in lecture
Create a dynamic HTML form in PHP that populates a dropdown from a database, then submit room data (name, price, hotel) to store in MySQL.
Create a Bootstrap login form with text or email and password inputs and a submit button, then handle post data in PHP using $_POST and the form's self action.
Create a PHP user profile page using session variables, display and edit the logged-in user's details, and enforce access control for authorized viewing.
Learn to implement role based access on PHP pages using session variables, showing or hiding admin features for sys admin and hotel roles, and preventing unauthorized access.
Delete records from a MySQL table using PHP and MySQLi prepared statements, handle foreign key constraints, and provide secure debugging and error feedback for admins.
Learn the basics of file upload in PHP, handling input type file with $_FILES, checking form submission, encoding with enctype, and validating name, type, and size before saving.
This PHP part demonstrates a working image upload: validate size and type, move the file to uploads, save the filename to the database, and display uploaded images with error handling.
Explore PHP string functions, focusing on addcslashes and addslashes to escape characters with backslashes, understand how predefined characters affect escaping, and see how these techniques help prevent SQL injection.
Learn how to compute crc32 in PHP to validate data integrity and use explode to split strings by a delimiter with optional positive or negative limits.
Learn how chunk_split and count_chars work in PHP to split strings into chunks and count character frequencies, with examples and for each loops showing key value pairs.
Explore how stripslashes and stripcslashes remove backslashes from strings, and how addslashes escapes apostrophes and quotes for safe database insertion and display.
Learn how to use sha1 and sha1_file in PHP to generate 40-character hex digests or raw binary hashes, enabling file integrity checks and secure data transmission.
Here is the Complete Syllabus of the course
Section 1:Introduction
Lecture 1:Course Introduction
Lecture 2:Installation of Tools Needed to Run PHP
Section 2:Basic HTML For Web Design | Development from Scratch
Lecture 3:HEADING and PARAGRAPH Tags in HTML
Lecture 4:IMAGE tag and its attributes in HTML
Lecture 5:Unorder List and Ordered List in HTML - Basic HTML
Lecture 6:TABLE Tag in HTML Part 1
Lecture 7:TABLE Tag in HTML Part 2
Lecture 8:Html Tags for Text Formatting
Lecture 9:Anchor Tag in HTML
Lecture 10:FORM Tag for Creating Web Forms Part 1
Lecture 11:FORM Tag for Creating Web Forms Part 2
Lecture 12:FORM Tag Radio Button and Select Tag in HTML Forms
Lecture 13:FORM Tag - ALL Other input tags in HTML Forms
Section 3:Basic CSS for Web Design | Development from Scratch
Lecture 14:CSS - Introduction
Lecture 15:Benefits or Purpose of writing CSS
Lecture 16:Simple Selectors in CSS - id, class and name of tag
Lecture 17:Different Ways of Writing CSS in a Web Page
Lecture 18:Colors in CSS - on Text, Background and Borders
Lecture 19:Backgrounds Related Properties in CSS
Lecture 20:Width and Height Related Properties in CSS
Lecture 21:Height and Width Inherit Values
Lecture 22:Text Related Properties in CSS
Lecture 23:Anchor Tag Related CSS Properties
Lecture 24:Margin and Padding Properties in CSS
Lecture 25:Fonts Related CSS Properties
Lecture 26:CSS Properties for Tables
Lecture 27:CSS Properties for Lists Part 1 (For UL and OL Tags)
Lecture 28:CSS Properties for Lists Part 2 (For UL and OL Tags)
Lecture 29:Display and Visibility Properties in CSS
Lecture 30:Creating a Simple Web Page Layout using DIV and CSS Part 1
Lecture 31:Web Page Layout Using CSS and DIV Part 2
Lecture 32:OVERFLOW Property in CSS
Lecture 33:Creating a NAVBAR using CSS and UL, LI
Section 4:Core PHP for Web Development From Scratch
Lecture 34:Writing First Statement in PHP
Lecture 35:Variables in PHP
Lecture 36:Datatypes in PHP
Lecture 37:Constants in PHP
Lecture 38:User Defined Functions in PHP
Lecture 39:Simple Calculator using GET and POST Superglobals Part1
Lecture 40:Simple Calculator using GET and POST Superglobals Part 2
Section 5:Operators in PHP
Lecture 41:Assignment Operators in PHP
Lecture 42:Arithmetic Operators in PHP
Lecture 43:Comparison Operators in PHP
Lecture 44:Logical Operators in PHP - Theory
Lecture 45:Logical Operators - Example - PHP
Lecture 46:Increment and Decrement Operators in PHP
Lecture 47:Ternary Operator in PHP
Lecture 48:String Operators in PHP
Section 6:LOOPS in PHP
Lecture 49:Nested For Loop and fetching Array values using For Loop
Lecture 50:FOR Loop Part 1
Lecture 51:WHILE Loop in PHP
Lecture 52:DO WHILE LOOP in PHP
Lecture 53:Foreach Loop in PHP
Section 7:Arrays in PHP
Lecture 54:Arrays - Indexed Arrays in PHP
Lecture 55:Associative Arrays in PHP
Lecture 56:Multidimensional Arrays in PHP
Section 8:Bootstrap for Beginners
Lecture 57:Bootstrap Introduction
Lecture 58:COLORS in Bootstrap - Theory
Lecture 59:Bootstrap COLORS - Examples
Lecture 60:Installing Bootstrap by Downloading the CSS and JS Files
Lecture 61:Creating an HTML Form With Dynamic Dropdown List in PHP
Lecture 62:Creating A Simple Web Page Layout Using Bootstrap - Part 1
Lecture 63:Creating A Simple Web Page Layout Using Bootstrap - Part 2
Lecture 64:Creating A Simple Web Page Layout Using Bootstrap - Part 3
Lecture 65:Creating Hotel's Web Application - Basic Home Page - Banner and Services Section
Lecture 66:Creating a Responsive Navigation Menu Using Bootstrap
Lecture 67:Bootstrap Creating Template having Sliders Part 1
Lecture 68:Bootstrap Creating Template having Sliders Part 2
Lecture 69:Bootstrap Responsive Tables and Classes for Table Tag
Lecture 70:Creating and Designing a Registration Form Using Bootstrap Part 1
Lecture 71:Creating and Designing a Registration Form Using Bootstrap Part 2
Lecture 72:Other Important Classes Related to Forms in Bootstrap
Section 9:PHP with MySQL - Databases and Tables
Lecture 73:Creating Database and Table for Application Using MySQL
Lecture 74:Creating a Table with Foreign Key Constraint in MySqL
Lecture 75:Connecting to MySQL Server using PHP
Lecture 76:Show Databases and Show Tables - SQL Query Using PHP
Lecture 77:Insert Records in MySQL Table From HTML Form using PHP Part 1
Lecture 78:Insert Records in MySQL Table From HTML Form using PHP Part 2
Lecture 79:Insert Data Into MySQL Table Using PDO - PHP Data Object
Lecture 80:View Records from a MySQL Table using PHP and Select Statement
Lecture 81:Update Records of MySQL Table Using PHP and MySqli Prepared Stamenet Part 1
Lecture 82:Update Records of MySQL Table Using PHP and MySqli Prepared Stamenet Part 2
Lecture 83:Update Records of MySQL Table Using PHP and MySqli Prepared Stamenet Part 3
Lecture 84:WHERE CLAUSE in MySQL with Example Queries
Lecture 85:LIKE Operator in Where Clause
Lecture 86:Creating a Login Page using HTML and PHP Part 1
Lecture 87:What are Session Variables - Introduction
Lecture 88:How to Modify Destroy or Unset Session Variables
Lecture 89:Fixing the Login Page for Logged In and anonymous users
Lecture 90:Creating User Profile Page in PHP - with the help of Session
Lecture 91:Creating Dynamic Navigation Bar and Logout Page in PHP
Lecture 92:Creating Role Based Access on Pages in PHP Part 1
Lecture 93:Creating Role Based Access on Pages in PHP part 2
Lecture 94:Using MySQL Joins for Joining 2 Tables and Fetching Results in PHP
Lecture 95:Web Hosting of PHP and MYSQL Application - Introduction
Lecture 96:Deleting Records of MySQL Table using PHP and MySQLi Prepared Statements part 1
Lecture 97:Deleting Records of MySQL Table using PHP and MySQLi Prepared Statements part 2
Lecture 98:How to Create Views in MySQL - Using PhpMyAdmin
Lecture 99:Transferring PHP Project from Local to Web Hosting - part 1
Lecture 100:Transferring PHP Project from Local to Web Hosting - part 2
Section 10:Functions for STRINGS in PHP
Lecture 101:Strings in PHP
Lecture 102:Addcslashes and Addslashes - String Functions in PHP
Lecture 103:str_word_count String Function in PHP PV
Lecture 104:Crc32 and Explode String Functions in PHP
Lecture 105:Chunk_split and Count_chars String Functions in PHP
Lecture 106:Htmlentities and Html_entity_decode String Functions
Lecture 107:Implode and Join String Functions
Lecture 108:Stripslashes and Stripcslashes String Functions in PHP
Lecture 109:Strcmp String Function in PHP
Lecture 110:SHA1 and SHA1_FILE Functions in PHP
Lecture 111:MD5 and MD5_FILE Functions in PHP
Lecture 112:Implode and Join String Functions in Php
Lecture 113:Lcfirst Ucfirst strtolower strtoupper String Functions
Lecture 114:Ltrim,Rtrim, Trim String Functions in PHP
Lecture 115:SOUNDEX , SIMILAR_TEXT and METAPHONE Functions in PHP
Lecture 116:Str_rot13, Str_Split and Str_shuffle String Functions in PHP
Lecture 117:Stripos String Function in PHP
Lecture 118:Strchr String Function in PHP
Lecture 119:Strip_tags String Function in PHP
Lecture 120:Str_replace String function in PHP
Section 11:Object Oriented Programming Concepts in PHP
Lecture 121:Object Oriented Programming - PHP Introduction
Lecture 122:Use of Instanceof Keyword in Object Oriented Programming - PHP
Lecture 123:__destruct() Function in Object Oriented Programming