Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. function count($subject){
  2.  
  3. $getCount = $connect->prepare('SELECT count(*) FROM entries WHERE uid = :id AND subject = :subject');
  4. $getCount->execute(array(
  5. ':id' => $id,
  6. ':subject' => $subject
  7. ));
  8. $rowCount = $getCount->fetchColumn();
  9.  
  10. return $rowCount;
  11. }
  12.  
  13. echo count("English");
  14.  
  15. function count($subject){
  16. global $connect
  17.  
  18. function count($subject, $connect){
  19.  
  20. count("The subject", $connect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement