Welcome Guest, Not a member yet? Register   Sign In
Apostrophe in form causing Error Number: 1064
#2

[eluser]Craig A Rodway[/eluser]
You have a couple of options - have a look here.

I'd recommend the Query Bindings option, so your query would be:

Code:
$sql = "INSERT INTO participants (id,YourName,email,comments) VALUES (NULL, ?, ?, ?)";
$this->db->query($sql, array($YourName, $email, $comments));


Messages In This Thread
Apostrophe in form causing Error Number: 1064 - by El Forum - 01-05-2008, 03:07 PM
Apostrophe in form causing Error Number: 1064 - by El Forum - 01-05-2008, 03:16 PM
Apostrophe in form causing Error Number: 1064 - by El Forum - 01-05-2008, 03:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB