-
Simple query
Hi guys i m new bie to php. Can you please let me know how to work around this prob.
Code:
<?
$mystart="<chart caption='Daily Summary' subcaption='For Date' xAxisName='Name' yAxisName='Count' >;
echo $mystart;
?>
but it doesnt prints anything. However when i remove this < from the start of the string it works.
-
Re: Simple query
I bet if you right-click View Source.... you'ld see the code.... what are you expecting?
All it's doing it printing out an HTML tag.... and one that I don't recognize.... at least not as a standard one.
=tg
-
Re: Simple query
PHP Code:
<?
$mystart = "<chart caption='Daily Summary' subcaption='For Date' xAxisName='Name' yAxisName='Count' >";
echo $mystart;
?>
I don't see how it worked without the '<' anyway, you missed the closing " tag.
I wouldn't recommend using PHP to echo out HTML/Whatever that is anyway, you can just use write that without PHP.
-
Re: Simple query
You're not sending a content type. The default content type is text/html. That is not HTML.