vinoth kanna Thu Oct 30 04:18:23 -0400 2014

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 ?


Alessandro Taccola Wed Dec 10 07:26:29 -0500 2014

DONT ! imagine $mail = '"; DROP table tt_admin; --'

(1-1/1)