difficulty with $this->db->select_max function - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: difficulty with $this->db->select_max function (/showthread.php?tid=46623) |
difficulty with $this->db->select_max function - El Forum - 11-08-2011 [eluser]bill19[/eluser] Hi everyone, I am having trouble with the $this->db->select_max Here is my DB: CREATE TABLE `zipcodes` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `zip` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `state` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `ap` double DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci Here is my code: Code: $this->db->select_max('ap'); Here is the output: Quote:Severity: 4096 Can anyone see why this doesn't work? Thanks in advance, KC |