RE: [phplib] Re: Using sqlguery.inc From: Rex Byrns (rexb <email protected>)
Date: 09/15/00

You are correct, this is exactly what is happening. Perhaps the
documentation should state somewhere in sqlquery.inc that if you use it, the
file must me includes with all other files that are available within the
same session. It really threw me for a while and I was about to blame my
partner for jacking up the prepend file. As usual though, I did it to
myself.

-----Original Message-----
From: Matthew Leingang [mailto:leingang <email protected>]
Sent: Friday, September 15, 2000 7:58 AM
To: Rex Byrns
Cc: Phplib <email protected> Netuse. De (E-mail)
Subject: [phplib] Re: Using sqlguery.inc

Oh, that's probably because sqlquery.inc uses session variables to hold
the "size" of its query form. So when you go to another page in the same
session, PHP tries to recover the sqlquery form, and since you're not
including sqlquery.inc anymore, it doesn't know how.

To work around...um...the simplest solution is to put sqlquery.inc in the
prepend file. Yes, then it will be read all the time and unecessarily so.
You can't count on the user to click something that would destroy the
session variable, though.

--Matt

----------------------------------------------------------------
Matthew Leingang http://www.math.rutgers.edu/
Rutgers University leingang <email protected>
Department of Mathematics "This signature needs no quote."

On Thu, 14 Sep 2000, Rex Byrns wrote:

> I don't know if this is a bug or not but I finally broke down and decided
to
> play with this class so I used the example from the documentation. It
> worked great, but when I went to any other page that uses authentication
or
> sessions, it said that sql_query was not a class. (of course these other
> pages were not including the file). Does this mean that if whatever you
> want to include, you have to include everywhere or you get errors?
>
> Thanks
> Rex
>
>
> [ Part 14: "Included Message" ]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>