Log in

View Full Version : Inserting results from a PHP file into an HTML page



Jim Weinberg
07-28-2012, 07:21 PM
Hi all.

What I have is a PHP file that queries a database. I want to use the results to fill a table that's defined in an HTML page. I'd like to do something like:

<HTML>
:
:
<table>
<?php include("http:/alongcrazyalley.com/test/dbtest.php"); ?>
</table>
:
:
:
</HTML>

The php file queries the database and builds the <td> tags.

What I don't know is 1) is this possible and 2) how to output the table row code in the PHP file.

Can anyone please help.

Thanks.