Welcome Guest, Not a member yet? Register   Sign In
Please Help !! how to using not auto_increment id ?????
#1

[eluser]Unknown[/eluser]
I am new to code igniter, and start my own project. I usually using mysql function UUID() to get unique character id.

How to do it with code igniter ? Active record only allows id using auto increment value is'nt it? Is there any trick ? Could anyone told me the trick ?

Thanks a lot before

regards

Dawning
#2

[eluser]xwero[/eluser]
I don't see why you can't do
Code:
$this->db->set('id','UUID()');
If it's protected, which isn't very likely, then you can add false as a third parameter of the set method.




Theme © iAndrew 2016 - Forum software by © MyBB