Simple Display
| From: | Barry Rumsey | Date: | Fri, 08 Feb 2002 18:46:17 +0000 |
| Subject: | Simple Display | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-16708@lists.php.net to get a copy of this message | ||
I am trying to do a simple fetch of the lastest add name. I have the
following code :
$query = "SELECT name FROM name ORDER BY name DESC LIMIT 1";
$latename = mysql_query($query) or die("Select Failed!");
$latename = mysql_fetch_array($latename);
echo "<b>Lastest Name Added:</b> $latename "
I know I am doing something wrong as being new to php it get be confused.
It returns : Lastest Name Added: Array
Could someone please point out where i'm going wrong
Thank you