예제 #1
0
파일: mbfun.php 프로젝트: iadi7ya/E-Quiz
function select($str1)
{
    $ob = new logic();
    $a = $ob->getresult($str1);
    if ($a) {
        echo $a;
        return $a;
    } else {
        echo "database not found";
    }
}
예제 #2
0
파일: mb.php 프로젝트: iadi7ya/E-Quiz
 function validadmin()
 {
     parent::get_connection();
     parent::selectdb();
     $str = "select userid,password from admin_info where userid='{$this->userid}' and password='******';";
     $res = mysql_query($str);
     if (mysql_affected_rows() > 0) {
         return true;
     } else {
         return false;
     }
 }