title: SELECT MAX(... not returning anything in PHP/MYSQL
body: <p>This is the table structure-</p>
  
  <pre><code>Table: test
  
  +------+---------+
  | PAGE | CONTENT |
  +------+---------+
  |  1   |   ABC   |
  +------+---------+
  |  2   |   DEF   |
  +------+---------+
  |  3   |   GHI   |
  +------+---------+
  </code></pre>
  
  <p><code>PAGE</code> is a Primary with datatype <code>INT(11)</code>. It does not auto-increment.  CONTENT is of the datatype <code>TEXT</code>.</p>
  
  <p>In PHP I do-</p>
  
  <pre><code>$result = mysql_query(SELECT MAX(PAGE) FROM test);
  $row = mysql_fetch_array($result);
  echo $row["PAGE"];
  </code></pre>
  
  <p>No output. At all. If I do something like <code>echo "Value : ".$row["PAGE"];</code> all I see is <code>Value :</code></p>
  
  <p>The query <code>SELECT * FROM test</code> works just fine though. Am I wrong somewhere using the <code>MAX()</code> syntax?</p>
  
  <p>I want it to return the maximum value of <code>PAGE</code> as of yet.</p>