SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast jeeplaw's Avatar
    Join Date
    Jul 2003
    Location
    Guilford, CT, USA
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Div ID Failing..what am i missing?

    I'm trying to wrap a css div around a custom output in php, and it's failing with your standard: "Parse error: syntax error, unexpected '/' in /home" on line 24. Line 24 is the line red. What am i missing here?


    <div id='contentFull'>

    echo $custom->displayPage( 59 );


    echo "
    </div>";

  2. #2
    .* draziW tnioPetiS *. bronze trophy
    Join Date
    Jun 2004
    Location
    "Then I figure the most good good guy will win."
    Posts
    1,666
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    Not sure if this will help you, but maybe try:
    Code PHP:
    <div id="contentFull"><?php echo $custom->displayPage( 59 ); ?></div>


  3. #3
    .* draziW tnioPetiS *. bronze trophy
    Join Date
    Jun 2004
    Location
    "Then I figure the most good good guy will win."
    Posts
    1,666
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alternatively:

    Code PHP:
    <?php
    echo '<div id="contentFull">';
    echo $custom->displayPage( 59 );
    echo '</div>';
    ?>

    Or even:

    Code PHP:
    <?php echo '<div id="contentFull">' . $custom->displayPage( 59 ) . '</div>' . "/n"; ?>

    Good luck!
    Cheers,
    Micky

  4. #4
    SitePoint Enthusiast jeeplaw's Avatar
    Join Date
    Jul 2003
    Location
    Guilford, CT, USA
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys, that did the trick


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •