Geez what really bad advice, giving an end user a totally useless
unfriendly csv file is bad bad bad. I suggest you check out
http://pear.php.net/package/Spreadsheet_Excel_Writer , its a pain to get
the layout perfect, but once its done you have what you need. I've also
been trying to hassle to get
Hello,
On 01/19/2004 09:40 PM, Ben Ramsey wrote:
I'm pretty sure I know how to use header() create a CSV file for a
client to download data from a database, but I think it would really
impress this client if I could generate a Microsoft Excel file instead
of a CSV file. Anyone know how to do t
On Tuesday, January 20, 2004, at 04:08 AM, John Nichel wrote:
Freedomware wrote:
OK, it looks like there are at least three ways to do this. I now
have an original style sheet with a .css extension and copies with
.php and .css.php extensions.
All three style sheets have the following code at t
Well you could use elseif statements so you only have to set one true
instead of X amount false
eg
if($includenorth){
//Do North Include
}elseif($includesw){
//Do Southwest Here
}
the only thing is with that way, only one well get done, not all, but it
depends on what you want, that may
Alright. You've all given some great suggestions, and I'm going to
track them down. But, for now, I'm settling for creating a CSV file.
My next question: How do I get the file to download without the ".php"
extension on the end? It's downloading it as "filename.csv.php".
The code to right m
> Alright. You've all given some great suggestions, and I'm going to
> track them down. But, for now, I'm settling for creating a CSV file.
>
> My next question: How do I get the file to download without the ".php"
> extension on the end? It's downloading it as "filename.csv.php".
>
> The code
Hi,
Ok, I know I've already spoken blasphemy ... but hear me out. I have a
client who wants to move her real estate site from a local ISP to a
somewhat decent service. Currently her site is all in Access/ASP - since I
know not of that world, I'm converting it to MySQL/PHP. The person they
h
Adding any of those headers still does not remove the ".php" from the
end of the file when I am prompted for the download. I have a client
that will be downloading this file, and I do not wish to instruct them
to first remove the ".php" extension before they can view it.
-Ben
[EMAIL PROTECTED
Ben Ramsey wrote:
Adding any of those headers still does not remove the ".php" from the
end of the file when I am prompted for the download. I have a client
that will be downloading this file, and I do not wish to instruct them
to first remove the ".php" extension before they can view it.
Are y
Name it for example something.csv
The in your .htaccess file put
ForceType application/x-httpd-php
Olwen Williams
[EMAIL PROTECTED]
-Original Message-
From: John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 4:43 PM
To: Ben Ramsey
Cc: [EMAIL PROTECTED]
Subject: R
There are far more elegant ways to do it. But for such a small file, the
looping-through-and-writing-sql-inserts-one-at-a-time should work just fine.
As long as you don't have to do it more than once, and the file is so small,
that's what I'd do. I've done it that way before.
An even uglier way:
Hi,
Tuesday, January 20, 2004, 1:24:46 PM, you wrote:
TT> Hi,
TT> Ok, I know I've already spoken blasphemy ... but hear me out. I have a
TT> client who wants to move her real estate site from a local ISP to a
TT> somewhat decent service. Currently her site is all in Access/ASP - since I
TT> know
101 - 112 of 112 matches
Mail list logo