title: Get last ID and display it
body: <p>I've been looking around but most of the tutorials are showing the <code>mysql_insert_id()</code> but it's on the same document. I'm wondering if there is a way where you can get the last id of a column and echo it out.</p>
  
  <pre><code>$image = mysql_query("SELECT * FROM images WHERE id=$id");
  $image = mysql_fetch_assoc($image) or die(mysql_error());
  
  $image = $image['image'];
  
  header("Content-type: image/jpeg");
  
  echo $image;
  </code></pre>
  
  <p>This is my code that gets the image from the database and makes the blob into a id?=1 which is the picture but as php. That is a uploader from another php document but I'm typing to output the last id from that column on another page (Not the picture but the number for statistics)</p>
  
  <p>A bit of code that could do that would be very helpful.</p>