title: php mysql insert (max(id)+1)
body: <p>I have a table image_tb, which has 3 fields, <code>id,images,link</code> (id is auto auto_increment), this is my insert code:</p>
  
  <pre><code>mysql_query("
  insert into image_tb 
  (images,link) 
  select 
  '".(max(id)+1).".jpeg','".$link."' 
  from image_tb
  ");
  </code></pre>
  
  <p>it return:</p>
  
  <pre><code>Warning: max(): When only one parameter is given, it must be an array
  </code></pre>
  
  <p>how to modify? thanks.</p>