Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function count($subject){
- $getCount = $connect->prepare('SELECT count(*) FROM entries WHERE uid = :id AND subject = :subject');
- $getCount->execute(array(
- ':id' => $id,
- ':subject' => $subject
- ));
- $rowCount = $getCount->fetchColumn();
- return $rowCount;
- }
- echo count("English");
- function count($subject){
- global $connect
- function count($subject, $connect){
- count("The subject", $connect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement