• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
spaces in MySQL columns

#1
[eluser]exodus7[/eluser]
I'm having trouble inserting a record using the Active Record Class when the column name has a space in it. I've tried using brackets & '' but its not working as expected:

example:

Code:
$data = array('Constituent Name' => $this->input->post('fullName', TRUE))

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

This is actually the first time I've seen spaces in a table's filed name I don't know how to fix this...

Any help would be greatly appreciated. Thanks!


Messages In This Thread
spaces in MySQL columns - by El Forum - 07-10-2008, 12:09 PM
spaces in MySQL columns - by El Forum - 07-10-2008, 12:15 PM
spaces in MySQL columns - by El Forum - 07-10-2008, 12:22 PM
spaces in MySQL columns - by El Forum - 07-10-2008, 01:20 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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