72newbie
08-24-2008, 08:47 PM
I have a script that counts items. On one server and test site it works, on another server it works but instead of counting 4 items then giving a break for a new row it's counting three items on the first row, 4 items for all the center rows then one item on the last row.
it looks like this:
$background = ($counter++%4) ? '' : '</tr><tr>';
I am completely baffled why it would count different on two different servers, the script is close to the same but not exactly and it uses an includes folder with functions and classes and is pretty complex. On top of that not all the files are the same from the test site to the live site.
I've searched through the files and can't find : function counter
Can you explain how this might work and what else it requires to work?
it looks like this:
$background = ($counter++%4) ? '' : '</tr><tr>';
I am completely baffled why it would count different on two different servers, the script is close to the same but not exactly and it uses an includes folder with functions and classes and is pretty complex. On top of that not all the files are the same from the test site to the live site.
I've searched through the files and can't find : function counter
Can you explain how this might work and what else it requires to work?