nstruth2

Shorter Prepared Statement

Jul 19th, 2023
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 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->execute([$username]);
  6. $aboutMeText = $q->fetchColumn();
  7. echo $aboutMeText;
  8. ?>
Advertisement
Add Comment
Please, Sign In to add comment