Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $sqlAttendees = "SELECT * FROM sing_attendees";
- $stmt = $dbh->query($sqlAttendees);
- $result = $stmt->fetch(PDO::FETCH_ASSOC);
- echo '<div class="col-md-12">';
- /*** loop over the object directly ***/
- echo "rowcount: " . $stmt->rowCount();
- foreach($result as $key=>$val)
- {
- echo $key.' - '.$val.'<br />';
- }
- print_r($result);
- echo "what";
- echo '</div>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement