Re: can't redirect to Excel



JRough wrote:
On Jul 19, 7:25 pm, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:
JRough wrote:
On Jul 19, 6:13 pm, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:
JRough wrote:
On Jul 19, 5:30 pm, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:
JRough wrote:
On Jul 19, 12:41 am, "Paul Lautman" <paul.laut...@xxxxxxxxxxxxxx>
wrote:
JRough wrote:
I have tried this 4 2 weeks and I need some help. There are 3 other
pages referenced on this page but I'm going to start with this page
in case I missed something. It is called current_sightings.php. All
I want to do is redirect to Excel in the case of the External user.
The first if statement creates a form. The elseif redirects the
external user to only his own listings. I want the results for the
Internal user query SELECT_sightings_leasecars.() to go to my
current_sightingsXL.php page. Where/How would I put the redirect? I
think it should be after the switch for external users. The
getTableHeaders() function is the string that gets passed. All the
pages work except I can't redirect the output to Excel.
What do you mean by "redirect the output to Excel"??? Excel isn't a
location, it's a spread*** program that some (but not all users) will have
on their machine.
I have a fully qualified url and it still doesn't work. I'm not sure
I put the if/else redirect to the Excel output right? It is going to
the Excel page but I get this message. These users will have Excel
since it is their cars and they want it in Excel. Do I have the if/
else in the right place?
Warning: session_start() [function.session-start]: Cannot send session
cache limiter - headers already sent (output started at /home/dhandler/
public_html/fakerockridge/current_sightingsXL.php:2) in /home/dhandler/
public_html/fakerockridge/includes/config.inc.php on line 18
Warning: Cannot modify header information - headers already sent by
(output started at /home/dhandler/public_html/fakerockridge/
current_sightingsXL.php:2) in /home/dhandler/public_html/fakerockridge/
current_sightingsXL.php on line 20
<code snipped>
The first message indicates you have output something to the client
before the call to session_start() (you can't do it before calling
header(), either).
The second message indicates the file and line in that file where the
output was sent.
This can be anything which is sent to the browser - including white
space, i.e. a nl character after the ?>. Or anything else.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@xxxxxxxxxxxxx
==================
Thanks,
Yes I discovered that. I ended up taking the else if out and I am
back where I started this morning. I don't know where to put the
redirect to Excel :-)
I think it is because it has to get the output first from the string
and the header. I don't know. I blocked it out. It probably goes at
the end after the header but I may be missing something else like the
string to output.
Janis
<?
It had nothing to do with the else if. It had to do with sending output
when you shouldn't.
Did you look at the file and line? What are you outputting there?
That's your problem with the messages.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@xxxxxxxxxxxxx
==================
have the else/if blocked.
So I still need to know where to put it, however, I do believe there
is somehting missing regarding the output string.
The $data
thanks,
What's missing as far as the output string? Not knowing what you have
in current_sightingsXL.php, I wouldn't know.

But that's not your problem. Read my previous entry. Until you fix the
REAL problem, you'll have trouble no matter where you place your
header() calls.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@xxxxxxxxxxxxx
==================

Hi Jerry:
I am sorry but I don't which line you mean and I do appreciate your
response.
Is it the $result? or is it in the case internal line? I am looking
for the output for the internal users. I guess I'm not entirely clear
what the output is. Select_sighting_leasecars is the right query. I
have that on the current_sightingsXL.php page as well. hmmm

case "internal":
$MSG_carlist = "CURRENT SIGHTINGS FOR ".SELECT_lease_num($id)."
".SELECT_comp_name($id);
$result = SELECT_sightings_leasecars($id,CLM_order_by($order_by));

break;


The line identified in your error message:

Warning: Cannot modify header information - headers already sent by
(output started at /home/dhandler/public_html/fakerockridge/
current_sightingsXL.php:2) in /home/dhandler/public_html/fakerockridge/
current_sightingsXL.php on line 20

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================

.


Loading