I am building a notes system on my site and I\'ve got to the stage where users can post notes into the MySQL database using PHP and then PHP prints them out on a page. Howev
If in case you want your LIMIT to be a variable, here I named it $limit:
"SELECT * FROM tbl ORDER BY input_date DESC LIMIT 0, $limit";