CodeIgniter Forums
(n00b) My first lookup table ! - 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: (n00b) My first lookup table ! (/showthread.php?tid=20357)

Pages: 1 2


(n00b) My first lookup table ! - El Forum - 07-07-2009

[eluser]Michael Wales[/eluser]
Code:
$this->db->insert_id()

Insert device, use above to get ID.
Insert outage, use above to get ID.
Insert JOIN table entries using values from previous 2 lines.


(n00b) My first lookup table ! - El Forum - 07-27-2009

[eluser]Samuurai[/eluser]
This worked perfectly.. Thanks!