Advertisement
NerdofME

Untitled

Dec 24th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  1. <?php
  2. $tArea = $_POST["searchtext"];
  3. $objectType = $_POST["objectType"];
  4. $locationItem = $_POST["li"];
  5.  
  6.  
  7.  
  8. echo "Hello. <br/>";
  9.  
  10. echo 'Your descripton is: '.$tArea.'<br/> Your object type is: '.$objectType.'<br/>Item
  11. of the location is: '.$locationItem.'<br/>';
  12.  
  13.  
  14.  
  15.  
  16.  
  17. /*Conntect with database*/
  18.  
  19. $servername = "localhost";
  20. $username = "nerdo";
  21. $password = "22963490nerdoO@";
  22.  
  23. // Create connection
  24. $conn = new mysqli($servername, $username, $password);
  25.  
  26. // Check connection
  27. if ($conn->connect_error) {
  28.     die("Connection failed: " . $conn->connect_error);
  29. }
  30. echo "Connected successfully";
  31. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement