Why won't this statement work??

wxdqz

New Member
This section of my scripts returns a 2, not what it's supposed to.

$Lastent = mysql_query("SELECT Date FROM table ORDER BY Date DESC LIMIT 1",$db);
print $Lastent;


What's wrong with it.
Am I suppose to use something besides mysql_query?

I am just trying to return one value, and that is the date in the yyyy-mm-dd format.
Just one value...no arrays.


thanx
 
Back
Top