PDA

View Full Version : display a php file in an html <table>


munaa80
11-29-2002, 09:59 AM
hello,
i have the following html code


****home.htm includes

<TABLE height=87 cellSpacing=2 cellPadding=2
width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top align=right height=111><FONT face=Verdana,color=#000000 size=1 sans-serif Helvetica, Arial,>
<A href="display.php?id=1">hacking </A></FONT>
<HR>
<FONT face=Verdana, color=#000000 size=1 sans-serif
Helvetica, Arial,><A
href="display.php?id=2">operating sestem</A></FONT> </td></tr></tbody></table>

****************
i want to display the content of the 'display.php' file in another <td> in another <table> in home.htm, i mean display the content in another table in the same home page
how can i do that?

Buddha443556
11-29-2002, 10:17 AM
If I understand you corectly, you what to display the source code of 'display.php.' You could use highlight_file (http://www.php.net/manual/en/function.highlight-file.php) to do that.

Of course I could just be misunderstanding you, been know to do that quiet often.

Nightfire
11-29-2002, 05:31 PM
Or maybe change the htm file to php, then include the file in the td