Welcome Guest, Not a member yet? Register   Sign In
Determine if CodeIgniter’s Model Save() is Insert or Update
#4

Your getting an error because it is

PHP Code:
$db->insertID(); 

Also it is an integer return type so if there is no insert id I would think that it would be 0 zero.

You cannot have a 0 id in a table just my thought on this
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Determine if CodeIgniter’s Model Save() is Insert or Update - by InsiteFX - 12-28-2020, 01:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB