# PHP Help

**URL:** <https://forum.kirupa.com/t/php-help/55697>\
**Category:** Uncategorized\
**Created:** [June 26, 2004, 10:16pm UTC](https://forum.kirupa.com/t/php-help/55697 "2004-06-26T22:16:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blakeky3](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@blakeky3](https://forum.kirupa.com/u/blakeky3)\
**Post date:** [June 26, 2004, 10:16pm UTC](https://forum.kirupa.com/t/php-help/55697/1 "2004-06-26T22:16:07Z")

</div>

I am working on my site and i need some help on it. I am trying to get the oldest submition to the databse so i order it by the id and then i only want one so i have the folowing code in:

$result = mysql\_query(“select \* from news\_main order by id limit 1”);

what should i do to make it grab the highest id number?
