Feature Request: |
[eluser]Michael Wales[/eluser]
How does this differ from: Code: $result = $this->db->query($query); db->insert_id() merely calls PHP's mysql_insert_id() function (assuming you are running MySQL). That function returns FALSE if no connection was present, 0 if the previous query did not generate an AUTO_INCREMENT ID (the functionality you recommend), or the ID of the row if all was successful. |
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
|