Re: [PHP-DB] session_registered variable problem

2002-01-29 Thread Jason Wong
On Tuesday 29 January 2002 21:15, Markus Lervik wrote: > On Monday 28 January 2002 18:42, Jason Wong wrote: > > > $page behaves just fine : > > > > [snip] > > > > > page: 2 <- yup, it's incrementing, all right... > > > nr_pages: 230 > > > > > > Whack! Doesn't work any more... It's starting to dri

Re: [PHP-DB] session_registered variable problem

2002-01-29 Thread Markus Lervik
On Monday 28 January 2002 18:42, Jason Wong wrote: > > $page behaves just fine : > [snip] > > page: 2 <- yup, it's incrementing, all right... > > nr_pages: 230 > > Whack! Doesn't work any more... It's starting to drive me mad. > Me too. Post the full code so we can all revel in this madness!

Re: [PHP-DB] session_registered variable problem

2002-01-29 Thread Markus Lervik
On Monday 28 January 2002 18:42, Jason Wong wrote: > > $page behaves just fine : > > page: 2 <- yup, it's incrementing, all right... > > nr_pages: 230 > > Whack! Doesn't work any more... It's starting to drive me mad. > Me too. Post the full code so we can all revel in this madness! All righ

Re: [PHP-DB] session_registered variable problem

2002-01-28 Thread Jason Wong
On Tuesday 29 January 2002 00:24, Markus Lervik wrote: > On Monday 28 January 2002 18:06, Jason Wong wrote: > $page behaves just fine : [snip] > page: 2 <- yup, it's incrementing, all right... > nr_pages: 230 > > Whack! Doesn't work any more... It's starting to drive me mad. Me too. Post the

Re: [PHP-DB] session_registered variable problem

2002-01-28 Thread Markus Lervik
On Monday 28 January 2002 18:06, Jason Wong wrote: > > Besides, I have a strange fetisch to do everything the hard way. : ) > Masochist :) :D > Anyway, as per the subject, how are you getting $page? I assume it is > stored in the session. Is $page behaving correctly when you go from one > page

Re: [PHP-DB] session_registered variable problem

2002-01-28 Thread Jason Wong
On Monday 28 January 2002 23:45, Markus Lervik wrote: > Well, in this particular case it won't work at all, because the SQL-query > is dynamically created based on what the user wants to search for. It > doesn't nessecary include all columns. The only static bit of the query is > "FROM uusi_lehti

Re: [PHP-DB] session_registered variable problem

2002-01-28 Thread Markus Lervik
On Monday 28 January 2002 17:34, Jason Wong wrote: > > Crikey, it looks terribly complicated for what looks like something to page > through a set of results. > > Wouldn't it be easier to do away with the ereg_replace()? > > if($go=="next") { >if($page < $nr_pages && $page >= 0) { > $pa

Re: [PHP-DB] session_registered variable problem

2002-01-28 Thread Jason Wong
On Monday 28 January 2002 21:05, Markus Lervik wrote: > On Monday 28 January 2002 14:57, Jason Wong wrote: > > > Somehow when I print the value of $query, it looks fine. > > > Then, when I change $query a bit and print it again, > > > it looks fine. > > > Change it a third time, and it suddenly ge

Re: [PHP-DB] session_registered variable problem

2002-01-28 Thread Markus Lervik
On Monday 28 January 2002 14:57, Jason Wong wrote: > > Somehow when I print the value of $query, it looks fine. > > Then, when I change $query a bit and print it again, > > it looks fine. > > Change it a third time, and it suddenly gets the value it > > had in the beginning. > Could you post som

Re: [PHP-DB] session_registered variable problem

2002-01-28 Thread Jason Wong
On Monday 28 January 2002 20:45, Markus Lervik wrote: > Hello! > > I have a problem with session_registered variables. > It seems that my sessions behave quite erratic. Well, > actually just one variable, $query. > > Somehow when I print the value of $query, it looks fine. > Then, when I change $q