0

hi everyone

i am doing this

<?php

$strXML1 = "<chart caption='COST OF TURNOVER' subCaption='' showPercentValues='1' pieSliceDepth='30' showBorder='0'>";

echo $strXML1;

?>
can anyone please tell me why echo $strXML1; does not out put anything. how can i do this.

Thanks in advance.

3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by dalip_007
0

<chart caption='COST OF TURNOVER' subCaption='' showPercentValues='1' pieSliceDepth='30' showBorder='0'> is behaving as html tags...

So it is coming in output but you wont be able to see it.It can be seen in view source.

You want to disply it as a text??
Try this:

<?php
$str = "<chart caption='COST OF TURNOVER' subCaption='' showPercentValues='1' pieSliceDepth='30' showBorder='0'>";
$strXML1 = htmlspecialchars($str, ENT_QUOTES);
echo $strXML1; 
?>
0

it wont display dude coz its a tag. i dont what kind of tag is that but you actually created it... try viewing the source code and youll see that your tag has been created.

0

it wont display dude coz its a tag. i dont what kind of tag is that but you actually created it... try viewing the source code and youll see that your tag has been created.

hi
this solved my problem. big thanks for your kind help.

Thanks again.

0

<chart caption='COST OF TURNOVER' subCaption='' showPercentValues='1' pieSliceDepth='30' showBorder='0'> is behaving as html tags...

So it is coming in output but you wont be able to see it.It can be seen in view source.

You want to disply it as a text??
Try this:

<?php
$str = "<chart caption='COST OF TURNOVER' subCaption='' showPercentValues='1' pieSliceDepth='30' showBorder='0'>";
$strXML1 = htmlspecialchars($str, ENT_QUOTES);
echo $strXML1; 
?>

Thanks for reply
you solved my problem.
Thanks again.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.