War in Ukraine

AucT Blog

Select Max Id using php + mysql!

Simple and elegant solution to select max id of the table. Plain php + mysql.
In case I forgot I'll post it here ;P

$maxid = $this->db->query('SELECT MAX(id) FROM `movies`')->fetchColumn();

Share on Social Networks:

Twitter Facebook
comments powered by Disqus