RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting

autogenerated mysql query with javascript

Join Date: Jul 2004
Location: Arizona State University
Posts: 56
Reputation: bwest is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 1
bwest's Avatar
bwest bwest is offline Offline
Junior Poster in Training

Re: autogenerated mysql query with javascript

  #2  
Oct 18th, 2005
I dont know why, but maybe I can help. I at least know why there are three slashes!

Im sure you know that a back slash makes the next character literal.

The best example is a string that looks like this
var = "here is a \"quote\""

you know that you need to have \" like this in a string because otherwise it will interfere with the outer quotes which define the string as a whole. Well for some reason the code is anticipating needing a literal quote and doing this
\\\'

So, The first \ makes the second \ literal. the third \ makes the ' literal. It wants the end result to be \'

Like I said I dont know enough about what your doing to help you solve but at least I can help with explaining that much...

good luck

Brad W.
AZPixels
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:19 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC