MySQL Forums
Forum List  »  Newbie

The last entry
Posted by: david.garyga
Date: August 19, 2004 03:38AM

Hi all,

I'm looking for selecting the last entry in my table to show it ;
I do this :

$query = "SELECT flash FROM naissance_flash WHERE IdFlash = 'SELECT max( IdFlash ) FROM naissance_flash '";
$result = mysql_query($query,$db);

echo "$flash";

It return "Notice : undefined variable flash"

So, I suppose it doesn't work...Why ?
Thanks from a frenchie

Options: ReplyQuote


Subject
Written By
Posted
The last entry
August 19, 2004 03:38AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.