#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    sydeny nsw aus
    Posts
    53
    Rep Power
    15
    in perl, I can use something like
    print <<"HTML CODE1";
    <HTML>
    <HEAD>
    <TITLE>news</TITLE>
    <META content=
    .....
    HTML CODE1

    but how can I use php/Mysql to create web page?
    I want read data form Mysql data base and use php to create html text file (the file name like webpage.html),
    any advice would be geately appreciate.
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    Do you mean create a new file? of make a template to fill in from a database? - assuming the former, try...

    <?
    $head="<HTML><TITLE>a new page !</TITLE>n<BODY>";
    $body="<H1>(whispered ala Vincent Price)where none existed before</H1>";
    $foot="</BODY></HTML>";
    $fd=fopen("newfile.htm","w");
    fputs($fd,$head);
    fputs($fd,$body);
    fputs($fd,$foot);
    fclose($fd);
    ?>
    <a href="newfile.htm">your new page</a>



    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    sydeny nsw aus
    Posts
    53
    Rep Power
    15
    Hi, firepages

    that is exactly what I want to know, realy appreacite for you help

Similar Threads

  1. header/footer in html (each page) just like word file
    By nihaarika2002 in forum HTML Programming
    Replies: 4
    Last Post: April 12th, 2004, 01:51 PM
  2. Replies: 0
    Last Post: February 8th, 2004, 11:11 PM
  3. Replies: 2
    Last Post: February 5th, 2004, 12:10 AM
  4. html 2 buttons on a page.
    By hussaim4 in forum HTML Programming
    Replies: 6
    Last Post: January 30th, 2004, 05:09 PM
  5. how do I create an html email?
    By seanpaul in forum HTML Programming
    Replies: 2
    Last Post: January 30th, 2004, 04:55 PM

IMN logo majestic logo threadwatch logo seochat tools logo