Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: SQL
Posted by: Dylan Lopez
Added: Mar 5, 2018 8:58 AM
Views: 21
Tags: bf database
  1. $query = $this->db->query("SELECT * FROM '".$table."' WHERE `id` = (SELECT max(`id`) FROM '".$table."')"); // GET the MAX id