Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Call your connection script - Require_once or include_once
- //Generate buttons for those users with a status of zero (unverified)
- function statusZero($pdo){
- $status = 0;
- $sql = "SELECT id FROM users WHERE status = ? ";
- $stmt = $pdo->prepare($sql);
- $stmt->bindParam(1,$status);
- $stmt->execute();
- $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
- foreach($rows as $val){
- echo "<button class='btn' type='submit' name='mybutton' id='{$val['id']}' value='{$val['id']}'>{$val['id']}</button>" . " | ";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement