How do you query a MySQL table columns highest entry and store it in a variable.

Posted by user315819 on Stack Overflow See other posts from Stack Overflow or by user315819
Published on 2010-04-14T14:09:07Z Indexed on 2010/04/14 14:13 UTC
Read the original article Hit count: 94

Filed under:
|

How do you query a MySQL table columns highest entry and store it in a variable. Here is what I have but it is not working. $query = "SELECT MAX(date) FROM Records WHERE ips='$currentip'"; $result = mysql_query($query) or die(mysql_error()); echo $result;

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql