02-04-2009, 02:13 PM
[eluser]jrutter[/eluser]
My insert code isnt stripping quotes and adding slashes, so when a user adds data with quotes, it breaks my application. So Im not sure what I need to do to make this work.
here is my insert code:
Any help would be greatly appreciated!
My insert code isnt stripping quotes and adding slashes, so when a user adds data with quotes, it breaks my application. So Im not sure what I need to do to make this work.
here is my insert code:
Code:
function insert_park()
{
$this->park_name = $_POST['park_name'];
$this->park_description = $_POST['park_description'];
$this->park_website = $_POST['park_website'];
$this->park_addr1 = $_POST['park_addr1'];
$this->park_city = $_POST['park_city'];
$this->park_state = $_POST['park_state'];
$this->park_zip = $_POST['park_zip'];
$this->park_visible = $_POST['park_visible'];
$this->db->insert('parks_tbl', $this);
}
Any help would be greatly appreciated!