Advertisement
ruhul0

Untitled

Dec 6th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.72 KB | None | 0 0
  1. <?php
  2.     include "connect.php";
  3.     include "id.php";
  4.     $PFName = $_POST['PFName'];
  5.     $PMName=$_POST['PMName'];
  6.     $PLName=$_POST['PLName'];
  7.     $Mobile1=$_POST['Mobile1'];
  8.     $Mobile2=$_POST['Mobile2'];
  9.     $select=$_POST['myselectbox'];
  10.     $PChoice=$_POST['PChoice'];
  11.     $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')";
  12.  
  13. if (mysqli_query($conn, $sql)) {
  14.     echo "New record created successfully";
  15. } else {
  16.     echo "Error: " . $sql . "<br>" . mysqli_error($conn);
  17. }
  18.  
  19. mysqli_close($conn);
  20.  
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement