PHP:
$result = mysql_query("SELECT MAX(something) AS something FROM users");
$row = mysql_fetch_assoc($result);
$max = $row["something"];
echo $max;
Mysql:
+-----------+----------+ | Something | Name | +-----------+----------+ | 9 | John | | 984 | Somebody | | 1 | Who |
Code results: 9, the question is why? Mysql "something" type is "text". My mysql table is bigger than this above, but it still results not the biggest "something".