Hello:
I am new to PHP and trying to limit results from a mySQL query. basically I would like to know the best practice for doing somethign like this.
I have a table in mySQL that I am trying to pull three fields from for items equal to or older than today limit the results to five and print those to the screen in a particular format.
I thought I should use something like this:
<?PHP
(connection string)
Select folderName, galleryName, entryDate from Gallery where entryDate <= today? limit 5 order by entryDate DESC;
{
echo "<a href=/galleries.php?folder=$folderName>$galleryName</a><br>"
}
?>
any advice would be greatly appreciated.
Todd