SELECT older than x days


/ Published in: SQL
Save to your folder(s)

2 things here. currency (euro) with in a 2.00 format and select entries older than 4 weeks = 28 days


Copy this code and paste it in your HTML
  1. SELECT
  2. FORMAT(kontoinfo.betrag,2) AS betrag
  3. FROM konto
  4. WHERE USER = '".$uid."'
  5. AND konto.datum >= SUBDATE( NOW(), 28)
  6. ORDER BY konto.datum DESC

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.