[FX.php List] Problem with site on client's server

Joel Shapiro jsfmp at earthlink.net
Thu Oct 18 11:59:22 MDT 2007


oops.

actually should have been

e.g.   if ( !isset( $skipSize ))  vs.   if ( $skipSize == '' )

to make them comparable

! + isset

-Joel


On Oct 18, 2007, at 10:51 AM, Joel Shapiro wrote:

> Hmm...  Were you using isset()?  (I wouldn't have thought that that  
> could cause an error)
>
> e.g.   if ( isset( $skipSize ))  vs.   if ( $skipSize == '' )
>
> -Joel
>
>
> On Oct 18, 2007, at 10:27 AM, Bob Patin wrote:
>
>> Joel,
>>
>> Actually it wasn't a counter variable; it was my skip variable for  
>> doing previous/next code for page views. I had an IF statement  
>> that said, if $skipSize isn't set, set it to zero; so rather than  
>> that goofy method I just put a hidden variable on the form, to set  
>> the skipSize to zero. That way the variable is set no matter how  
>> it's used.
>>
>> So it either gets set to zero when the query is performed, or it  
>> gets reset to an appropriate value when the PREV/NEXT buttons are  
>> used on the results page.
>>
>> Bob
>>
>>
>> On Oct 18, 2007, at 12:15 PM, Joel Shapiro wrote:
>>
>>> Hey Bob
>>>
>>> Can you give an example of your undeclared variable?
>>>
>>> Do you mean you used a counter variable in a loop without  
>>> starting it equal to zero?
>>>
>>> -Joel
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list