PHP Tutorials

pHP data types 0

PHP Data Types with Examples

In the web development landscape, PHP stands out as a versatile and widely used server-side scripting language, powering a vast array of dynamic websites and web applications. At the heart of PHP lies the...

php operators 0

PHP Operators and its Types

In the realm of PHP programming, operators serve as the building blocks for performing various tasks, from simple arithmetic calculations to complex logical operations. Understanding the diverse range of operators available in PHP is...

pHP comments 0

PHP Comments and its Types

Comments serve as programming’s silent champions, offering invaluable clarity, context, and direction within codebases. In PHP, comments emerge as essential assets in bolstering code readability, fostering collaboration, and simplifying maintenance endeavors. In this insightful...

PHP Syntax 0

Basic Syntax of PHP

PHP, renowned as the Hypertext Preprocessor, serves as a powerful companion to HTML, seamlessly blending with it to empower developers in creating engaging and dynamic websites and applications. Whether you’re embarking on your coding...

PHP Interview Questions & Answers Part – 9 0

PHP Interview Questions & Answers Part – 9

Program 1 <html> <head><title>PHP Interview Questions with DataBase</title></head> <body> <center> <?php /* what are different types of fetch function in PHP //mysqli_fetch_assoc() // mysqli_fetch_array() // mysqli_fetch_row() // mysqli_fetch_field() // mysqli_fetch_all() */ ?> </center> </body>...

PHP Menu Driven Application Part – 2 0

PHP Menu Driven Application Part – 2

Program 1 <html> <body> <center> <table border=1> <tr bgcolor=yellow><th >————Menu Application———-</th></tr> <tr bgcolor=cyan> <td>1. Factorial Of Number</td> </tr> <tr bgcolor=green> <td>2. Reverse Of Number</td> </tr> <tr> <td>3. Palindrom Number</td> </tr> <tr bgcolor=blue> <td>4. Armstrong...

PHP Menu Driven Application Part – 1 0

PHP Menu Driven Application Part – 1

Program 1 <?php include ‘MenuApplication.php’?> <html> <head><title>Factorial Page</title></head> <body> <center> <br><h5>Enter A Number</h4> <form method=post action=factorial.php> <input type=text name=txnumber> <input type=submit value=submit name=btnsubmit1> </form> <?php if(isset($_POST[‘btnsubmit1’])) { $n=$_POST[‘txnumber’]; $f=1; while($n!=0) { $f=$f*$n; $n–; }...

Deletion Method in PHP ORM Architecture 0

Deletion Method in PHP ORM Architecture

Program 1 <?php require ‘dao.php’; require ‘model.php’ ?> <html> <body> <br><br><br><br><br><br><br><br><br><br> <center> <form method=post action=”DeleteStudent.php”> <table border=1> <tr> <th>Student Id for Delete</th> <td><input type=text name=txtid></td> </tr> <tr> <td></td> <td><input type=submit value=Search name=btnSubmit></td> </tr> </table>...

Searching Method in PHP ORM Architecture 0

Searching Method in PHP ORM Architecture

Program 1 <?php require ‘dao.php’; require ‘model.php’ ?> <html> <body> <br><br><br><br><br><br><br><br><br><br> <center> <form method=post action=”SelectStudent.php”> <table border=1> <tr> <th>Student Id</th> <td><input type=text name=txtid></td> </tr> <tr> <td></td> <td><input type=submit value=Search name=btnSubmit></td> </tr> </table> <pre> <?php...

Insertion Method in PHP ORM Architecture 0

Insertion Method in PHP ORM Architecture

Program 1 <?php require ‘dao.php’; require ‘model.php’; ?> <html> <body> <br><br><br><br><br><br><br><br><br><br> <center> <form method=post action=”InsertStudent.php”> <table border=1> <tr> <th>Student Id</th> <td><input type=text name=txtid></td> </tr> <tr> <th>Name</th> <td><input type=text name=txtname></td> </tr> <tr> <th>Physics</th> <td><input type=text...