Ok I am a noob to PHP and I am trying to use serverside scripting to include an html document in to my index.php that holds table data.
What I want to do is keep my table data in a sperate html doc so I don't have to clutter my index.php file with this code. Is this something that can be done with some kind of serverside include file?
Here is the code that I currently have in my index.php:
<table align="center" width="761" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr bgcolor="#FFFFFF"><td height="150" width="100%" valign="top>"<img src=http://www.htmlforums.com/archive/index.php/"templates/pipptek/images/header.jpg" /></td>
</tr>
This is where I would like to pull the table information from another html doc.
<table align="center" width="761" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr bgcolor="#FFFFFF"><td height="150" width="100%" valign="top"><td>This is where I would like to put something that point's to a html doc with all my table info. It use to just be one large picture here.</td>
</tr>
Thanks inadvance for any help.
loom001Hi Loom001,
would you please post all PHP questions in the PHP subforum. What I can say to your question, you can use include() to include another file to the code:
<?php
include("filename.php");
?>
What I want to do is keep my table data in a sperate html doc so I don't have to clutter my index.php file with this code. Is this something that can be done with some kind of serverside include file?
Here is the code that I currently have in my index.php:
<table align="center" width="761" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr bgcolor="#FFFFFF"><td height="150" width="100%" valign="top>"<img src=http://www.htmlforums.com/archive/index.php/"templates/pipptek/images/header.jpg" /></td>
</tr>
This is where I would like to pull the table information from another html doc.
<table align="center" width="761" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr bgcolor="#FFFFFF"><td height="150" width="100%" valign="top"><td>This is where I would like to put something that point's to a html doc with all my table info. It use to just be one large picture here.</td>
</tr>
Thanks inadvance for any help.
loom001Hi Loom001,
would you please post all PHP questions in the PHP subforum. What I can say to your question, you can use include() to include another file to the code:
<?php
include("filename.php");
?>