Hello, I'm having a problem with double quotes, @ symbols and # signs.
When a user submits a text field with those symboles for example, its cuts them off like so...
the descrip should have more text after it but a double quote is killing the rest of the input data.
descrip="10@9"x 10/M' tt20y / donnick stock";
but as you can see the second set of quotes is killing it.
Currently i thought this was the solution but i guess i was wrong.
i thought the $value line would escape those double quotes...anyone know what i should do
When a user submits a text field with those symboles for example, its cuts them off like so...
Code:
INSERT INTO po_item SET po_id='5304', descrip='10@9', price='0.0000'
descrip="10@9"x 10/M' tt20y / donnick stock";
but as you can see the second set of quotes is killing it.
Currently i thought this was the solution but i guess i was wrong.
Code:
while(($key,$value)=each(%data)){
$value=~ s/(["'])/\\$1/g;
$query.=" $key='$value',";
Comment