PHP Classes

function count_categories

Recommend this page to a friend!

      Unlimited sub-categories  >  All threads  >  function count_categories  >  (Un) Subscribe thread alerts  
Subject:function count_categories
Summary:everytimes count -1
Messages:3
Author:Martin La Regina
Date:2006-12-26 14:45:40
Update:2007-01-01 19:17:19
 

  1. function count_categories   Reply   Report abuse  
Picture of Martin La Regina Martin La Regina - 2006-12-26 14:45:40
Hi !!
Im testing your code, and i find something wrong, or perhaps i making wrong something. In a funcion count_categories you count like :
WHERE position LIKE '".$thisPosition.">%';
and if you echo $sql return:
WHERE position LIKE '68>86>>%';
i think there are a entra ">". It's posible ?

Thanks and happy cristmas and new year.

Martin.

  2. Re: function count_categories   Reply   Report abuse  
Picture of S.Shaban S.Shaban - 2006-12-26 15:18:30 - In reply to message 1 from Martin La Regina
Hi Martin,

Yes , there shouldn't be extra ">" there ..
I'll check that and see if its a bug in the class.

Thanks for figuring it out.
Shadi,

  3. Re: function count_categories   Reply   Report abuse  
Picture of S.Shaban S.Shaban - 2007-01-01 19:17:19 - In reply to message 1 from Martin La Regina
The problem were fixed and you was right about the extra > ..

Regards,