Results 1 to 1 of 1

Thread: Inserting results from a PHP file into an HTML page

  1. #1
    Join Date
    Jan 2006
    Posts
    170
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default Inserting results from a PHP file into an HTML page

    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.
    Last edited by Jim Weinberg; 07-28-2012 at 08:52 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •