• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Active Directory with MySQL commands

#1
[eluser]Halmat[/eluser]
Hi all,

New to using codeigniter and really love it!

I'm wondering whether I can use Active Directory functions with MySQL commands?

Like so:

Code:
$data = array(
   'uuid' => 'UUID()',
     'name' => $this->input->post('name'),
     'date' => 'UTC_TIMESTAMP()'
  );

$this->db->insert('test', $data);

Any ideas?

Thanks,
Halmat

#2
[eluser]Halmat[/eluser]
Anyone? Sad

#3
[eluser]CroNiX[/eluser]
No, it doesn't. Get the value of UUID() and pass the value to store instead of the actual function. Otherwise it will just store that "UUID()" as literal text.

#4
[eluser]Halmat[/eluser]
Okay cool. Thanks for the answer.

#5
[eluser]Aken[/eluser]
You can use built-in MySQL commands using set() and then insert() instead of insert() by itself. Look at the User Guide section for set(), it will tell you how to keep it from auto-escaping.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.