|
-
Nov 19th, 2007, 08:25 AM
#1
Thread Starter
Lively Member
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.
-
Nov 19th, 2007, 09:41 AM
#2
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
-
Nov 19th, 2007, 09:41 AM
#3
Hyperactive Member
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.
» Twitter: @rudi_visser : Website: www.rudiv.se «
If Apple fixes security flaws, they are heralded as proactive. If Microsoft fixes a security flaw, they finally got around to fixing their buggy OS.
-
Nov 19th, 2007, 09:44 AM
#4
Re: Simple query
You're not sending a content type. The default content type is text/html. That is not HTML.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|