Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $db = $db->prepare('SELECT * FROM User WHERE userName = :username');
- $db->bindParam(':username', $myUserName);
- if($db->execute() == 1)
- {
- foreach($db->fetch() as $data)
- {
- echo $data['userName'];
- }
- }
Add Comment
Please, Sign In to add comment