




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
lab Practical programs for bachelor of computer applications
Typology: Study notes
1 / 28
This page cannot be seen from the preview
Don't miss anything!
1. Develop and demonstrate an HTML file that includes PHP script to generate first ‘n’ Fibonacci numbers
2. Create a PHP script that accepts a number through inputbox and checks whether it is palindrome or not
date_default_timezone_set("Asia/Calcutta"); echo "
session started at".date("h:i:sa",time())."
6. Develop a web application that takes the name and age from an HTML page. If the age is less than 18, it should display a page with “hello
else
{ $_SESSION['counter']=1; } echo "You have visited the page ".$_SESSION['counter']." time in this session"; ?>
8. Develop a database based web application that performs login validation and prints the corresponding message based on checking the username and password from MySQL database.
{ echo "Failed to connect with the server"; exit(); } else { $uname=$_POST['uname']; $pass=$_POST['pass']; $q="select Message from users where Username='$uname' and Password='$pass'"; $result=$conn->query($q); if($result->num_rows>0) { $row=$result->fetch_assoc(); echo "Message ".$row['Message']; } else { echo "Either username or password is wrong"; } } } ?>
else
{ echo "Cookie is not set. You have to set cookie"; } ?>
10. Create a PHP script that reads an array and displays the array in sorted order.
11. Develop a web application that develops a student registration form and displays the entered details to another page