SHARE
TWEET

Untitled

a guest Jan 20th, 2013 13 Never
  1. SELECT CODE_VER FROM MASTERTEST WHERE DATE>= DATE_SUB(CURDATE(), INTERVAL 90 DAY) ORDER BY DATE DESC;
  2.        
  3. @result=SELECT CODE_VER FROM MASTERTEST WHERE DATE>= DATE_SUB(CURDATE(), INTERVAL 90 DAY) ORDER BY DATE DESC;
  4.  
  5. @result.page(params[:page]).per(10)
  6.        
  7. <% paginate %> # to render the value page by page
RAW Paste Data
Top