Slecting data
| From: | Website4S at aol dot com | Date: | Wed, 11 Oct 2000 03:03:10 +0000 |
| Subject: | Slecting data | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-19477@lists.php.net to get a copy of this message | ||
Hi,
I`m new to this list and fairly new to PHP, just wondering if anyone can help
me with this problem.
I`m trying to select data from a table which I can normally do no probs, but
this time I`m having to display the last entry using the Where statement but
I`m not sure what to write after this to make sure it picks up the highest
number. I`m using the following:
$sql = "SELECT * FROM UKGSSegaNews WHERE ID='????'";
I have ID setup in the database table as Primary Key and auto incrementing so
I always need to pick up the highest numbered record. Can anyone help me with
this snippet of code??
Ade