Home
CRUD operating PHP
//for databaseCreate Database name as data CREATE TABLE users(id INT AUTO_INCREMENT PRIMARY KEY,name VARCHAR(50) NOT NULL,email VARCHAR(50) NOT NULL UNIQUE);
CRUD operating PHP Read MorePrime Number or not using PHP
<?php if ($_SERVER[ "REQUEST_METHOD "] == "POST ") { $num = $_POST[ "num "]; $is_prime = true; if ($num <= 1) { $is_prime = false; } else { for ($i …
Prime Number or not using PHP Read MorePalindrome or not using PHP
<?php if ($_SERVER["REQUEST_METHOD"] == "POST") { $num = $_POST["num"]; // convert number to string $num_str = strval($num); // reverse the string $reverse_str = strrev($num_str); // check if the original number …
Palindrome or not using PHP Read MoreAdd two numbers 6 and 7 using PHP
<?php $sum = 6 + 7; echo "The sum of 6 and 7 is: " , $sum; ?>
Add two numbers 6 and 7 using PHP Read MoreEven or Odd using PHP
<!DOCTYPE html> <html> <head> <title>Even or odd checker</title> </head> <body> <form method="post"> <label for="number">Enter a number:</label> <input type="text" id="number" name="number"><br><br> <input type="submit" name="submit" value="Check"> </form> <?php if (isset($_POST['submit'])) { $num …
Even or Odd using PHP Read MoreGreatest among any two numbers using PHP
<html> <head> <title>Find the greatest number</title> </head> <body> <form method="post" > <label for="number1">Enter the first number:</label> <input type="number" id="number1" name="number1"><br><br> <label for="number2">Enter the second number:</label> <input type="number" id="number2" name="number2"><br><br> <input …
Greatest among any two numbers using PHP Read More