1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Parse error - in php

Discussion in 'Content Management' started by Becky01, Oct 2, 2012.

  1. Becky01

    Becky01 Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #21
    many thanks, wont be able to respond until after work, regards9vSTzcYU
     
    Becky01, Oct 3, 2012 IP
  2. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #22
    So, you want to echo out something, right?

    <?= is short for echo


    You can't echo a comment alone. You have to remove the /* and */

    It should look like thsi

    
    <div id="col2">
    <p><a href="<?= site_href( 'property/cmsindex' ); ?>">Properties</a></p>
    <h2>New property</h2>
    
    <p><?= $html->tagErrorMsg( 'property/name', 'Name must not be blank.' ); ?>
    <?= $html->tagErrorMsg( 'property/description', 'Description must not be blank.' ); ?></p>
    
    <?
    include( element_filename( "property_form" ) );
    ?>
    </div>
    
    PHP:

    EDIT: Wait, did you already solve it?
     
    GMF, Oct 4, 2012 IP
  3. Becky01

    Becky01 Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #23
    Thank you for your help
     
    Becky01, Oct 4, 2012 IP