Calling PHP Experts
#1
Calling PHP Experts
Hi all,
I've created a series of PHP pages that gathers user input, stores it in MySQL database and then confirms all the entries on a final page by pulling the data out of the database and formats it using tables and such....
Now I'm trying to find a way to put all of information on the final page into an HTML file that is dynamically created and named depending on the job number. kind of a hard copy of the final confirmation page which can then be stored and referenced at a later date...
I've found this code which might be a potential:
<?
$output = "<html><b><u>Test</u></b></html>";
$myfile = "test.html";
if($file=fopen($myfile, "w")) { //open file for writing
fwrite($file, $output); //write to file
}
?>
But I'm not sure how I parse my dynamic data (stuff from the Mysql Database) into the $output = "" statement.
Can anyone suggest anyways that I might be able to create this page?
I hope I've explaned myself properly - if not please ask...
Chump
I've created a series of PHP pages that gathers user input, stores it in MySQL database and then confirms all the entries on a final page by pulling the data out of the database and formats it using tables and such....
Now I'm trying to find a way to put all of information on the final page into an HTML file that is dynamically created and named depending on the job number. kind of a hard copy of the final confirmation page which can then be stored and referenced at a later date...
I've found this code which might be a potential:
<?
$output = "<html><b><u>Test</u></b></html>";
$myfile = "test.html";
if($file=fopen($myfile, "w")) { //open file for writing
fwrite($file, $output); //write to file
}
?>
But I'm not sure how I parse my dynamic data (stuff from the Mysql Database) into the $output = "" statement.
Can anyone suggest anyways that I might be able to create this page?
I hope I've explaned myself properly - if not please ask...
Chump
Thread
Thread Starter
Forum
Replies
Last Post