PHP School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a PHP Expert!

Join 307,124 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 2,020 people online right now. Registration is fast and FREE... Join Now!




php include not working in table

 

php include not working in table

ladyinblack

5 Nov, 2009 - 05:36 AM
Post #1

D.I.C Regular
Group Icon

Joined: 8 Apr, 2009
Posts: 323



Thanked: 7 times
Dream Kudos: 25
My Contributions
Here is what I've done so far:

index.php
CODE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
      <table border=1>
        <tr align="center">
          <td colspan=2>
            <h1>Ogwini ReUnite</h1>
          </td>
        </tr>
        <tr>
          <td>
            <?php include(leftmenu.php); ?>
          </td>
          <td>
            <i>Dear All Ogwini Comprehensive Alumni</i>
            <p><i>Are you an Ogwini Comprehensive High School past student between 1985 and 2008, if so, this exciting event is for you and many others.</i></p>
            <p><i>Ogwini Reunion Presents to you the Best 25 Year Celebration of existence in the comfort and blossoming environment of Botanic Gardens in Durban.</i></p>
            <i> The following will be featured:</i>
            <ul>
              <li>A great chance to meet Ogwini Generated Celebrities</li>
              <li>A networking experience with Ogwini generated businesspeople</li>
              <li>A platform for catching up with old friends</li>
              <li>An awards ceremony</li>
              <li>Great entertainment by our artist of the day (surprise for the day)</li>
              <li>A succulent Gala dinner</li>
              <li>An afterparty yomhlaba with the favourite DJ</li>
            </ul>
          </td>
        </tr>
      </table>
    </body>
</html>


leftbuild.php
CODE
<a href="/home.php">Home</a>
<a href="/profiles.php">Profiles</a>
<a href="/contactus.php">Contact Us</a>


I did this using netbeans. I run it quite a few times but I'm not seeing any significant problem from what I've learnt so far.


User is offlineProfile CardPM
+Quote Post


ShaneK

RE: Php Include Not Working In Table

5 Nov, 2009 - 05:44 AM
Post #2

require_once("brain.php"); //Fatal error :/
Group Icon

Joined: 10 May, 2009
Posts: 701



Thanked: 47 times
Dream Kudos: 75
Expert In: PHP, MySQL

My Contributions
Please note that your file name needs to be sent as a string.

CODE
<?php include(leftmenu.php); ?>

Should be changed to:
CODE
<?php include("leftmenu.php"); ?>


Yours,
Shane~
User is offlineProfile CardPM
+Quote Post

ladyinblack

RE: Php Include Not Working In Table

5 Nov, 2009 - 05:50 AM
Post #3

D.I.C Regular
Group Icon

Joined: 8 Apr, 2009
Posts: 323



Thanked: 7 times
Dream Kudos: 25
My Contributions
aha,
thanks

aha,
thanks
knew I was missing something
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 02:09PM

Live PHP Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month