Results 1 to 4 of 4

Thread: Simple query

  1. #1

    Thread Starter
    Lively Member blackeyed's Avatar
    Join Date
    Nov 2002
    Location
    Chandigarh
    Posts
    118

    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.
    ~~Avi~~

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    Ubuntu Haters Club
    Posts
    405

    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.

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    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
  •  



Click Here to Expand Forum to Full Width