crud operations in php
<?php
// Check if the form is submitted
$personName = $_POST['personName'];
$address = $_POST['address'];
$mobile = $_POST['mobile'];
$email = $_POST['email'];
$message = $_POST['message'];
$tdate=new DateTime();
// form a sql query
$sql = "INSERT INTO tbquery (name, email, mobile,address, comment, postdate)
VALUES ('". $personName."',
'". $email ."',
'". $mobile ."',
'". $address ."',
'". $message ."',
'". $tdate->format('Y-m-d') ."'
)";
if (mysqli_query($conn, $sql)) {
echo "Your query posted successfully";
} else {
echo "Error: " . $sql . "" . mysqli_error($conn);
}
mysqli_close($conn);
?>
FireGUI website: http://www.firegui.com// ...
<body>
<?php if (isset($_SESSION['message'])): ?>
<div class="msg">
<?php
echo $_SESSION['message'];
unset($_SESSION['message']);
?>
</div>
<?php endif ?>
Also in PHP:
- check var type php
- curend date phph
- error php display
- console .log in php
- codeigniter db insert return id
- define header in php
- find data format in php
- catch http exceptions php
- Unhandled exception on throw php
- check string is present in php
- acf group
- find string contain spacific charactor or not in php
- Connect to SQL in a php PDO and print the data in it
- check if strlen more than 10 laravel
- check if string contains a word php
- convert object to array php
- Installation request for phpoffice/phpspreadsheet 1.4.0 -> satisfiable by phpoffice/phpspreadsheet[1.4.0]
- capitalized string in php
- check if string contains word
- disable login and register in laravel
- fetch last inserted data with record in php codeingniter
- find substring in string php
- How to install php-simple-html-dom-parser
- create a php live chat without no load