Undefined Offset Error with Pagination and Sessions

Undefined Offset Error with Pagination and Sessions

am 18.08.2009 18:49:50 von tmiller

Hi Folks, after days of trying lots of different things, I'm must grovel to
the list and post my problem...which is I am unable to get my pagination to
work, it seems to not carry the session to the next page and I get the
"undefined offset error"

The page code is posted here since my email client seems to mess up the cod=
e
formatting: http://pastebin.ca/1534024

Thanks to any and all who have a look.
Terion


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Undefined Offset Error with Pagination and Sessions

am 18.08.2009 19:19:02 von tmiller

Formatted as PHP
http://pastebin.ca/1534058


and a note before I get chewed about the weird setting and unsetting at the=
top with the sessions...because believe I see it...but if you take the uns=
et() out..nothing works, I can't figure that out and maybe that is a blaten=
t thing I'm missing (prob) but I know that checking if a sesion is set then=
immediately unsetting it is not logical, and I tried putting it like if is=
set else unset but same results, nothing work all variables error'd out as=
undefined.



On 8/18/09 11:49 AM, "Miller, Terion" wrote:

Hi Folks, after days of trying lots of different things, I'm must grovel to
the list and post my problem...which is I am unable to get my pagination to
work, it seems to not carry the session to the next page and I get the
"undefined offset error"

The page code is posted here since my email client seems to mess up the cod=
e
formatting: http://pastebin.ca/1534024

Thanks to any and all who have a look.
Terion


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Undefined Offset Error with Pagination and Sessions

am 18.08.2009 19:44:29 von Shawn McKenzie

Miller, Terion wrote:
> Hi Folks, after days of trying lots of different things, I'm must grovel to
> the list and post my problem...which is I am unable to get my pagination to
> work, it seems to not carry the session to the next page and I get the
> "undefined offset error"
>
> The page code is posted here since my email client seems to mess up the code
> formatting: http://pastebin.ca/1534024
>
> Thanks to any and all who have a look.
> Terion
>

First off the $_SESSION array doesn't exist because you haven't started
the session with session_start().

--
Thanks!
-Shawn
http://www.spidean.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: Undefined Offset Error with Pagination and Sessions

am 18.08.2009 19:46:18 von tmiller

On 8/18/09 12:44 PM, "Shawn McKenzie" wrote:

Miller, Terion wrote:
> Hi Folks, after days of trying lots of different things, I'm must grovel =
to
> the list and post my problem...which is I am unable to get my pagination =
to
> work, it seems to not carry the session to the next page and I get the
> "undefined offset error"
>
> The page code is posted here since my email client seems to mess up the c=
ode
> formatting: http://pastebin.ca/1534024
>
> Thanks to any and all who have a look.
> Terion
>

First off the $_SESSION array doesn't exist because you haven't started
the session with session_start().

--
Thanks!
-Shawn
http://www.spidean.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Oh Sorry for confusion but yes the session_start() is at the very very top =
of the page along with a bunch of other data connection stuff, I just didn'=
t include in the troublesome script.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Undefined Offset Error with Pagination and Sessions

am 18.08.2009 19:53:27 von Ralph Deffke

by having a quick look on it, u have to work on a session base? otherwise it
could be done by the post data only. I'm trying to avoid to work on the
session, because it makes live a bit easier. if u can try.

I'm telling this, because as u metioned to unset the session stuff is wierd
and I wouldn't trust the session vars any more anyway.

ralph_deffke@yahoo.de


""Miller, Terion"" wrote in message
news:C6B04CB6.49E1%kmiller13@springfi.gannett.com...
Formatted as PHP
http://pastebin.ca/1534058


and a note before I get chewed about the weird setting and unsetting at the
top with the sessions...because believe I see it...but if you take the
unset() out..nothing works, I can't figure that out and maybe that is a
blatent thing I'm missing (prob) but I know that checking if a sesion is set
then immediately unsetting it is not logical, and I tried putting it like if
isset else unset but same results, nothing work all variables error'd out
as undefined.



On 8/18/09 11:49 AM, "Miller, Terion" wrote:

Hi Folks, after days of trying lots of different things, I'm must grovel to
the list and post my problem...which is I am unable to get my pagination to
work, it seems to not carry the session to the next page and I get the
"undefined offset error"

The page code is posted here since my email client seems to mess up the code
formatting: http://pastebin.ca/1534024

Thanks to any and all who have a look.
Terion


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Undefined Offset Error with Pagination and Sessions

am 19.08.2009 05:57:33 von kranthi

may be you can use a couple of var_dumps to see what's happening
behind the screens.


and... use a debugger like xdebug.. it'll be of help

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php