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

#3
[eluser]jrutter[/eluser]
It seems to be storing it correctly in the database, but Im having trouble when I output the data here:

Any thoughts?

&lt;?php echo "var infoHTML = '<a >park_id."\">".$row->park_name."</a><br>".$row->park_city.",".$row->park_state."';"."\n";?&gt;

It seems to get confused with the single quotes, and see's the single quotation in the name of the park as the closing one here. Hmm.


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.