Page 1 of 1

More PHP Table Help

Posted: Thu Jun 19, 2003 9:12 pm
by wknit
Scenario: home page w/table, 3 columns. In the center column I am calling a script to post news like this:

Code: Select all

<td>
  <?php include 'index.php' ?>
</td>
The news posts are stored in MySQL, and I display three at a time in the column... well, almost...

Everything works fine except when I choose the next page of posts, it's a new page and is no longer contained within the context of the table/column that the original 'include' displayed. Is there a way to fix this?

Here is the code that calls the next page of posts:

Code: Select all

echo "[<a href="index.php?page=$next" title="Page $next">Next >></a>]";
I know that I can rewrite the index.php file to have all the attributes of my home page (menus, graphics, etc) and just use the index.php directly, but I'd like to solve this inside of a table if possible.

Anyone?

Posted: Thu Jun 19, 2003 9:26 pm
by nielsene
You probably want the href to point to the name of the homepage, not the actualy included file, but without seeing more code I can't say for sure.