Saturday 15 March 2014

php - Pushing address from database to Javascript Error: SyntaxError -


I have data with databases in which the address is included I am creating a Google Maps and when I use the data via jQuery I am pushing / pushing this message through firebug and through my code break:

  SyntaxError: The identifier starts immediately after the numerical literal type. (First, example);   

Now I am assuming that it is in the database as 'special character' in the address.

I am using my data like this: type.push (& lt ;? php echo $ row ['address'] ;; & gt;);

And in firebug it is displayed in the Script tab: type.push (1, example);

If someone has any suggestions then it would be great.

Thanks

'address'] ;; & Gt; ");

No comments:

Post a Comment