Guest User

Untitled

a guest
Jun 13th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. function getListings($email, $firstname, $lastname)
  2. {
  3. $con = mysqli_connect("***.***.***","name","password","DB");
  4. $qu = $con->prepare('SELECT email, password, skills, firstName, lastName, address, apt, city, state, zip, country, phone, hourly_rate, bio, profile_pic, proposal FROM users WHERE username=? LIMIT 1');
  5. $qu-> bind_param('s', $username);
  6. $qu->execute();
  7. $qu->bind_result($email, $password, $skills, $firstname, $lastname, $address, $apt, $city, $state, $zip, $country, $phone, $hourlyrate, $bio, $pic, $proposal);
  8. $qu->fetch();
  9. $qu->close();
  10. }
  11.  
  12. getListings($firstname, $lastname, $email);
  13.  
  14. <div class="sidehead">
  15. <strong>
  16. <?php
  17. echo ($firstname . " ");
  18. echo $lastname;
  19. ?>
  20. </strong>
  21. </div>
  22.  
  23. <div class="sideheademail sidehide">
  24. <?php echo ($email . " "); ?>
  25. </div>
Add Comment
Please, Sign In to add comment