Created
June 23, 2015 00:25
Revisions
-
medyo created this gist
Jun 23, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ public function etudiantExistant($ca,$cin,$cne) { $q = $this->db->prepare('SELECT count(*) FROM licence WHERE ca = :ca AND cin = :cin AND cne = :cne '); $q->bindValue(':ca', $ca); $q->bindValue(':cin', $cin); $q->bindValue(':cne', $cne); $q->execute(); $number_of_rows = $result->fetchColumn(); if ($number_of_rows > 0){ return true; }else{ return false; } }