Posts
Showing posts from April, 2026
9) What is exception handling in PHP ? Explain in detail.
- Get link
- X
- Other Apps
PRACTICAL NO. 17
- Get link
- X
- Other Apps
PRACTICAL NO. 17 AIM: To create a PHP page for login page with SQL connection. PROGRAM: Develop web page with data validation. √ Write simple PHP program to a. Set cookies and read it. Code: <?php if (!isset($_COOKIE['visits'])) $_COOKIE['visits'] = 0; $visits = $_COOKIE['visits'] + 1; setcookie('visits',$visits,time()+3600*24*365); ?> <html> <head><style type="text/css"> div {font-size:20pt;color:navy;font-family:arial black; width:50%;background-color:white} p {font-size:18pt; color: lime; font-weight:bold; text-align:center; font-family:bauhus 93} .groove{border-style:groove} .dotted{border-style:dotted} </s...
Practical 8 ( Recursive Function. )
- Get link
- X
- Other Apps
Practical No.8 AIM: Write a PHP program to display factorial value using Recursive Function. PROGRAM: <html> <body> <form action="factorial.php" method="POST"> <center><br> <table align="center" width="35%" border="5"> <tr align="center" bgcolor="blue"><td><font color="white"><br><h1>FACTORIAL</h1></td></tr> <tr bgcolor="pink"><td><br> <font color="black" size="5">ENTER THE DIGIT</font> <input type="text"name="n"size="20"> <br><br> &n...