I want to retrieve 1 record from my table. the most recent record. Im stumped as to how to do that
heres where Im at:
mysql_select_db($db,$link);
$result = mysql_query("SELECT * FROM lg_log ORDER BY lg_crtdt DESC", $link);
If I do a while it will read through the whole thing when I just want to get that first record. Yes this is probably terribly simple.
while ($myrow = mysql_fetch_array($result))
{
$id = $myrow["id"];