Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = "localhost";
- $username = "username";
- $password = "password";
- // Create connection
- $conn = new mysqli($servername, $username, $password);
- // Check connection
- if ($conn->connect_error) {
- die("Connection failed: " . $conn->connect_error);
- }
- $id = mysqli_real_escape_string($conn, $_GET['Userid']);
- $sql = "SELECT `name` FROM `rusttestet` WHERE `id` = $id LIMIT 1"
- $result = $conn->query($sql);
- if(mysqli_num_rows($result))
- {
- $row = mysqli_num_rows($result);
- $name = $row['name'];
- echo 'Hello ' . $name;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement