Page 1 of 1

Max [SOLVED]

Posted: Sat Apr 14, 2012 9:29 am
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

Re: Max

Posted: Sat Apr 14, 2012 11:37 am
by Weirdan

Re: Max

Posted: Sat Apr 14, 2012 12:43 pm
by YoussefSiblini
Thank you :) perfect