idiorm given below PDO error when trying to update table. (note: table primary key is not labeled 'id', but 'app_id' instead)
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause' (code 42S22)
$user = ORM::for_table('app_users')
->where_raw(" (Name='$email' and Password='$password') or (Email='$email' and Password='$password') ")
->find_one();
idiorm given below PDO error when trying to update table. (note: table primary key is not labeled 'id', but 'app_id' instead)
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause' (code 42S22)
$user = ORM::for_table('app_users') ->where_raw(" (Name='$email' and Password='$password') or (Email='$email' and Password='$password') ") ->find_one();
$user->Logins = $user->Logins + 1; $user->save();