Welcome Guest, Not a member yet? Register   Sign In
Update and Return
#3

Shorter way:
Code:
$seq = $this->db->query("SELECT seq FROM table WHERE field='NEXTINV'")->row()->seq;
Make sure that field='NEXTINV' refers to a unique record. Best way is to refer to the ID column.
Reply


Messages In This Thread
Update and Return - by goodkarma - 02-19-2015, 11:57 AM
RE: Update and Return - by dbui - 02-19-2015, 09:12 PM
RE: Update and Return - by Wouter60 - 02-20-2015, 04:49 AM
RE: Update and Return - by Nichiren - 02-23-2015, 06:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB