code.class.php 263 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 <?php Class Code{ private $db; private $lang; function __construct($lang){ $this->db = sdb::getInstance(); $this->lang = $lang; } public function getID_code($code){ return $this->db->getOne("select id from code where code=?",array($code)); } } ?>