News
Entertainment
Science & Technology
Life
Culture & Art
Hobbies
News
Entertainment
Science & Technology
Culture & Art
Hobbies
PHP is a popular scripting language used for server-side web development. It is used to create dynamic webpages and applications that can interact with databases and other web services. PHP is an open source programming language and is one of the most popular web development languages. PHP can be used to create websites, web applications, and mobile apps. This collection of news, articles, and videos will help you stay up to date on the latest trends and developments in PHP.
Program 1 <html> <head><title>Demo</title></head> <body> <center> <?php function swap(&$a,&$b) //call by reference { $c=$a; $a=$b; $b=$c; } $a=500; $b=300; echo "Value is : ".$a; // echo "<br>Before Swaping: ".$a." ".$b; // swap($a,$b); // echo...
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...
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>...
Program 1 <html> <head><title>Demo</title></head> <body> <center> <?php class Product { private $pname; private $price; private $qty; public function __construct($name,$pr,$qt) { $this->pname=$name; $this->price=$pr; $this->qty=$qt; } public function __tostring() { //return "<br>This is to String method<br>";...
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...
Program 1 <?php class MyConnection { public function getConnection() { $mycon=mysqli_connect("localhost","root","","Library") or die("Connection not success"); return $mycon; } } ?> Program 2 <?php require 'dao.php'; require 'model.php'; ?> <html><head><title>This is test page of connection</title></head>...
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...
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>...
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--; }...