Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. $sqlAttendees = "SELECT * FROM sing_attendees";
  2. $stmt = $dbh->query($sqlAttendees);
  3. $result = $stmt->fetch(PDO::FETCH_ASSOC);
  4.  
  5. echo '<div class="col-md-12">';
  6. /*** loop over the object directly ***/
  7. echo "rowcount: " . $stmt->rowCount();
  8. foreach($result as $key=>$val)
  9. {
  10. echo $key.' - '.$val.'<br />';
  11. }
  12. print_r($result);
  13. echo "what";
  14. echo '</div>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement