I am working on Google Infographics API and trying to create a QR code application in PHP. My source file is this:
$base = “https://chart.googleapis.com/chart?”;
Now in the placeholder of chl the text is What’s on your mind there is a quote which is creating problem with other quotes. How do I manage it?
Something messed up here. the code is here : http://pastebin.com/mUnDD5tU
Replace the single quote with a backslash quote is all that’s needed:
Already tried that, doesn’t works. The placeholder is showing What
Have you tried using & # 3 9 ;: (sans spaces)
why is there a break after your php open?
< ?php $base = "https://chart.googleapis.com/chart?";
Not sure if that is causing a problem, but doesn’t make sense
should be causing a problem.
If you don’t see a problem due to that, then you need to do
error_reporting( -1 );
at the top of your file, so PHP will point out problems like that. That way, you don’t have to guess (and we don’t either). : )
You must be logged in to reply to this topic.