nstruth2

Longer Prepared Statement

Jul 19th, 2023 (edited)
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. <?php
  2. include 'config.php';
  3. $username = $_POST["username"];
  4. $q = $connection->prepare("SELECT aboutMeText FROM `aboutmetextpages` WHERE username=?");
  5. $q->bindValue(1, $username, PDO::PARAM_INT);
  6. $q->execute();
  7. $aboutMeText = $q->fetchColumn();
  8. echo $aboutMeText;
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment