Jump to content

PHP and Tables


cappsie

Recommended Posts

Hi

I have a page that is contained within a large table.

I have been wanting to swtich to php for the convenience of not having to edit lots of pages.

Alas it has not proven sucessful - I only want to use very simple php to call in to my main page php pages/docs.

For some reason I am having trouble doing this as when I design the main page with the tag:
[b]<div class="body"><?php @ require_once ("$page.php"); ?></div>[/b]

It only loads half the page - the tutorials I have read haven't made good sense.

Is there a step by step guide around here that includes a "rule of thumb" and "best practice" guide?

alternatively if someone fancies helping me out it would save me much time - it is only very simple my aim :)

I have 6 main page links and within each page are many other links -
the main (parent) pages need to be able to list the child links and the child links have to have the ability to 'call' the php info pages into and below those child links.

I hope that is clear  :-\

Anyways thanks in advance
:)

Adam
Link to comment
Share on other sites

Require returns a fatal error, thus halting the script half way. But cose of that @ you don't see the error... Include would just produce a warnig, and let the script run to it's end.

I'm slow at typing  ;D
Link to comment
Share on other sites

I think most of that makes sense.

Your require call is a little off however.  Try:
<div class="body"><?php @require_once ("page.php"); ?></div>

If you're including a dynamic page, you can do this:
<div class="body"><?php @require_once ($page . ".php"); ?></div>
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.