Hi.
I am using a SQL query to display information from my database. Everything is working fine; however, I can’t find a way to limit the entries displayed to those submitted in just the last month.
I tried to use the weblog display_by=“week” limit=“4” code, but that doesn’t work. Here’s my current query; any help would be appreciated!!
{exp:query sql="SELECT exp_freeform_entries.tribute, exp_freeform_entries.type, exp_freeform_entries.text, exp_freeform_attachments.filename, exp_freeform_attachments.extension FROM exp_freeform_entries, exp_freeform_attachments WHERE exp_freeform_entries.entry_id = exp_freeform_attachments.entry_id ORDER BY exp_freeform_entries.entry_date DESC"}
<h5>{type} {tribute}</h5>
<blockquote><p>{text}<br />
<a href="http://sabarfoundation.org/SABF/images/freeform/{filename}{extension}">http://sabarfoundation.org/SABF/images/freeform/{filename}{extension}</a></p>
</blockquote>
<p>{/exp:query}