Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 16th, 2007, 01:28 PM
EMB EMB is offline
Registered User
 
Join Date: Aug 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Export Recordset as an HTML file

How do I export a recordset as an HTML file; ready for download in a web browser with download options (such as Save or Save As)? I think I known how to write an HTML file using the following code:
Code:
<?php
$filePointer = fopen("data.html", "r");

fputs($filePointer, "<HTML>Code</HTML>")

fclose($filePointer);
?>





Similar Threads
Thread Thread Starter Forum Replies Last Post
Export HTML to Excel dbellavi C# 2005 3 December 19th, 2007 08:48 AM
Pdf to html conversion and export the checked para lohith ASP.NET 2.0 Professional 0 July 3rd, 2007 12:09 AM
Export HTML graph to Excel Jorge Classic ASP Basics 8 February 10th, 2005 01:54 PM
Export Recordset to Word Document blackdevil1979 VB How-To 0 September 2nd, 2004 03:54 AM
how can I export a report to HTML ? jewbask Classic ASP Basics 2 July 3rd, 2004 06:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.