I currently have some code to show the latest update on my site.
I have two problems:
1) how do I get the date to Display "04-13-10". I know the php code is date("m-d-y") But how would I incorporate that for an updated item?
2) limit the number of updates to display to 3 or 5?
Current Code:
$select = ("SELECT * FROM photo_albums ORDER BY uptime ASC ");
$result = mysql_query($select) or die(mysql_error());
while($row = mysql_fetch_array($result)) {
//I want the date to be displayed here un $row['uptime']
echo "<p align='center'>".$row['uptime']."</p>"
."<p align='left'><a href='viewAlbum.php?aid=".$row['aid']."'>".$row['description']."</a></p>"
."<hr width='75%' color='#FFFFFF' />";
}