Re: Another question about functions...
| From: | Jason Pruim | Date: | Tue, 29 Jan 2008 19:39:40 +0000 |
| Subject: | Re: Another question about functions... | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268274@lists.php.net to get a copy of this message | ||
On Jan 29, 2008, at 11:58 AM, Jason Pruim wrote:
On Jan 29, 2008, at 11:48 AM, Nathan Nobbe wrote:Okay, so I checked everything I can think of, and it's still downloading it as an application which means it's downloading the entire website instead of just the data from the database... Anyone have any idea what to check? -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com japruim@raoset.comOn Jan 29, 2008 11:07 AM, Jason Pruim <japruim@raoset.com> wrote: What's happening is, I have the code set and it downloads the file into excel, but it doesn't have the database fields in it, rather a copy of the entire webpage which it trys to put into excel. this sounds to me like you may not be linking to the code that generates the excel spreadsheet properly. this is just a hunch, but to test it, you might try pointing your browser directly at the script that generates the excel spreadsheet, rather than navigating to it via a link you have on your current page. as far as the data not showing up in the output, try experimenting by omitting the header() calls and just dump out the result set of the query to ensure the data is actually getting populated in your function. -nathanWell, I commented out the header lines and just printed the data to the browser, and it fills it all in perfectly. So I think you are right about not calling it right... I'll do some more checking on that, back to the $salt farms I go! :)