I have a table and am trying to get the most recent row using this code:
include "db_conx.php";
$sql="SELECT column FROM table ORDER BY DESC LIMIT 1";
if ($result=mysqli_query($db_conx,$sql))
{
while ($row=mysqli_fetch_row($result))
{
printf($row[0]);
}
mysqli_free_result($result);
}
It returns a blank result though.