Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    quick question about my code

    can someone tell me where i mess up this code. because i cant find it.
    PHP Code:
    <html>
    <head>
    <title>Hello php world</title>
    </head>
    <body>
    <div class="header">
    <?php include("header.php"); ?>
    </div>

    <div class="menu">
    <?php include("menubar.php)"?>
    </div>

    div class="content">
    <?php include("content.php"); ?>
    </div>

    div class="footer">
    <?php include("footer.php"); ?>
    </div>
    </body>
    </html>

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    <html>
    <head>
    <title>Hello php world</title>
    </head>
    <body>
    <div class="header">
    <?php include("header.php"); ?>
    </div>

    <div class="menu">
    <?php include("menubar.php)"; ?>
    </div>

    <div class="content">
    <?php include("content.php"); ?>
    </div>

    <div class="footer">
    <?php include("footer.php"); ?>
    </div>
    </body>
    </html>

  • #3
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    I only see one right here

    PHP Code:
    <div class="menu">
    <?php include("menubar.php)"?>
    </div>
    You have the quotation mark outside of the include function parenthesis when it should be inside like this

    PHP Code:
    <div class="menu">
    <?php include("menubar.php"); ?>
    </div>
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #4
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It worked thanks


  •  

    Posting Permissions

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