Esempio n. 1
0
function select($str1)
{
    $ob = new logic();
    $a = $ob->getresult($str1);
    if ($a) {
        echo $a;
        return $a;
    } else {
        echo "database not found";
    }
}
Esempio n. 2
0
 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;
     }
 }