Subject: How to take count of the last query?
Admin::find_by_sql("SELECT * FROM tt_admin WHERE admin_user = '".$mail."' AND admin_pass = '".$pass.");
Admin::count(); this show total count of the table i need ly count last query executed count ?
DONT ! imagine $mail = '"; DROP table tt_admin; --'
(1-1/1)
June 27 2010
April 16, 2013
Subject: How to take count of the last query?
Admin::find_by_sql("SELECT * FROM tt_admin WHERE admin_user = '".$mail."' AND admin_pass = '".$pass.");
Admin::count();
this show total count of the table i need ly count last query executed count ?