• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Escape quotes/strip slashes.

#2
[eluser]xzela[/eluser]
Try using an array and see if that helps:

Code:
function insert_park() {
  $fields = array();

  $fields['park_name'] = $_POST['park_name'];
  $fields['park_description '] = $_POST['park_description'];
  $fields['park_website'] = $_POST['park_website'];
  $fields['park_addr1'] = $_POST['park_addr1'];
  $fields['park_city'] = $_POST['park_city'];
  $fields['park_state'] = $_POST['park_state'];
  $fields['park_zip'] = $_POST['park_zip'];
  $fields['park_visible'] = $_POST['park_visible'];

  $this->db->insert('parks_tbl', $fields);
        
}


Messages In This Thread
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 02:13 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 05:32 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 05:42 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 06:00 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 06:04 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 06:06 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 06:15 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 06:58 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 07:18 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 07:41 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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