Re: Re: DB_Pager: throws error when you manually change the URL parameter - how can you error check?

From: Date: Tue, 23 Aug 2005 21:24:25 +0000
Subject: Re: Re: DB_Pager: throws error when you manually change the URL parameter - how can you error check?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20557@lists.php.net to get a copy of this message
--- Pierre <pierre@dotgeek.org> wrote: > On Tue, 23 Aug 2005 11:38:10 -0700 (PDT) > lburnerheimerton@yahoo.com (l Burnerheimerton) > wrote: > > > It looks like there's a array: > > > > data['current'] > > data['firspage'] > > data['lastpage'] > > data['pages'] > > > > When you change the URL parameter "from=", it > throws > > as error: > > > > Warning: Cannot use a scalar value as an array in > > C:\...\page.php on line 66. > > > > My line 66 is: > > foreach ($data['pages'] as $page => $start_row) { > > > > What do I need to do to error check for THAT url > > parameter? > > The $data seems not to be what you should have as > the return value > from DB::Pager. > > The message cannot be more clear. > > --Pierre > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php Any one else have any ideas that are not simply concurring there is an error? Will checking is_scalar(&_GET['from']) suffice? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

« previous php.pear.general (#20557) next »