Max [SOLVED]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
YoussefSiblini
Forum Contributor
Posts: 206
Joined: Thu Jul 21, 2011 1:51 pm

Max [SOLVED]

Post by YoussefSiblini »

Hi I am trying to get the highest number in a column, I am using this:

Code: Select all

$try = mysql_query("SELECT MAX(PaymentNameLastNum) FROM logistics");
echo $try;
But this is outputting this: Resource id #7


Youssef
Last edited by YoussefSiblini on Sat Apr 14, 2012 12:44 pm, edited 1 time in total.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Max

Post by Weirdan »

YoussefSiblini
Forum Contributor
Posts: 206
Joined: Thu Jul 21, 2011 1:51 pm

Re: Max

Post by YoussefSiblini »

Thank you :) perfect
Post Reply