SHOW:
|
|
- or go back to the newest paste.
1 | - | // $query = $pdo->prepare("SELECT * FROM cards LIMIT :offset, :count"); |
1 | + | $query = $pdo->prepare("SELECT * FROM users WHERE username=:username"); |
2 | - | // $query->bindValue(":offset", 20, PDO::PARAM_INT); |
2 | + | $query->bindValue(":username", $username, PDO::PARAM_STR); |
3 | - | // $query->bindValue(":count", 10, PDO::PARAM_INT); |
3 | + | $query->execute(); |
4 | - | |
4 | + | $row = $query->fetchAll(); |