Hi
I have a field box that will be used for GPS co-ordinates. But the " and ' mess my mysql query up.
My code work like this.
[code=php]
$a1=$_POST['gps'];
query = "INSERT INTO information VALUES ('','$a1','$a2' ,...
[/code]
I tried to do something like ' \"$aq\" ' and just using " " but still it give me problems.
Also in my database I had the row as Vachar and text.
Where can I read about this or how do I fix it?
I have a field box that will be used for GPS co-ordinates. But the " and ' mess my mysql query up.
My code work like this.
[code=php]
$a1=$_POST['gps'];
query = "INSERT INTO information VALUES ('','$a1','$a2' ,...
[/code]
I tried to do something like ' \"$aq\" ' and just using " " but still it give me problems.
Also in my database I had the row as Vachar and text.
Where can I read about this or how do I fix it?
Comment