Welcome Guest, Not a member yet? Register   Sign In
Feature Request:
#1

[eluser]Unknown[/eluser]
After querying, to get the inserted id you call
Code:
$this->db->insert_id()

It would be really nice if you could do something like this instead:
Code:
$result = $this->db->query($query);
$inserted_id = $result->insert_id()

That method would simply return false if an insert was not performed on an result that tried to get the insert id. Make sense?


Messages In This Thread
Feature Request: - by El Forum - 01-13-2008, 07:19 PM
Feature Request: - by El Forum - 01-13-2008, 08:56 PM
Feature Request: - by El Forum - 01-14-2008, 12:43 AM
Feature Request: - by El Forum - 01-14-2008, 01:10 AM
Feature Request: - by El Forum - 01-14-2008, 01:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB