For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > January 2005 > Re: Structures_DataGrid_Renderer_HTMLTable QUERY_STRING 'feature'









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Structures_DataGrid_Renderer_HTMLTable QUERY_STRING 'feature'
Andrew Nagy

2005-01-28, 3:59 pm

Ian P. Christian wrote:
> Line 350:
>
> if (stristr($element, $this->_dg->requestPrefix . 'orderBy')) {
> $url .= $this->_dg->requestPrefix . 'orderBy=' .
> $column->orderBy;
> $orderByExists = true;
> } elseif (stristr($element, $this->_dg->requestPrefix . 'direction')) {
> $url .= $direction;
> } elseif (stristr($element, $this->_dg->requestPrefix . 'page') &&
> $this->sortingResetsPaging) {
> $url .= $this->_dg->requestPrefix . 'page=1';
> } else {
> $url .= $element;
> }
>
>
> You're doing 'strstr', so if any other paramters contain 'page', they are
> ignored :)
>
> Kind Regards,
>


What bug are you referring to? What is wrong with this block of code?

Andrew
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com