Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $tArea = $_POST["searchtext"];
- $objectType = $_POST["objectType"];
- $locationItem = $_POST["li"];
- echo "Hello. <br/>";
- echo 'Your descripton is: '.$tArea.'<br/> Your object type is: '.$objectType.'<br/>Item
- of the location is: '.$locationItem.'<br/>';
- /*Conntect with database*/
- $servername = "localhost";
- $username = "nerdo";
- $password = "22963490nerdoO@";
- // Create connection
- $conn = new mysqli($servername, $username, $password);
- // Check connection
- if ($conn->connect_error) {
- die("Connection failed: " . $conn->connect_error);
- }
- echo "Connected successfully";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement