Re: DB_Pager: throws error when you manually change the URL parameter - how can you error check?
| From: | Pierre | Date: | Tue, 23 Aug 2005 20:35:58 +0000 |
| Subject: | 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-20555@lists.php.net to get a copy of this message | ||
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