Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "connect.php";
- include "id.php";
- $PFName = $_POST['PFName'];
- $PMName=$_POST['PMName'];
- $PLName=$_POST['PLName'];
- $Mobile1=$_POST['Mobile1'];
- $Mobile2=$_POST['Mobile2'];
- $select=$_POST['myselectbox'];
- $PChoice=$_POST['PChoice'];
- $sql = "INSERT INTO `Patient`(`PId`, `PFName`, `PMName`, `PLName`, `PDiesesName`, `DiesesSeverity`, `SpNote`, `PMobile1`, `PMobile2`, `PProfession`, `PChoice`, `PDoa`) VALUES ('$id', '$PFName', '$PMName', '$PLName', '', '','', '$Mobile1', '$Mobile2', $select', '$PChoice','1/1/1111')";
- if (mysqli_query($conn, $sql)) {
- echo "New record created successfully";
- } else {
- echo "Error: " . $sql . "<br>" . mysqli_error($conn);
- }
- mysqli_close($conn);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement