The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

So presumably it's counting them (there are 7 categories), but not displaying them. I'll just away and try out what you said above - Category is the third column, ie table keywords : Keyword_ID, Keyword, Category

And a blank with the 'Current keywords category is :' part.

Also, what did the print_r show you?
It seems that there is just a small glitch with the $categoryData['Category'] being echoes etc....I just want to see whether it is getting a var or not...

the prints were as above - the first looking a bit odd, the second looking as you'd expect.

as opposed to <td class="odd">......I think that maybe the problem - ie the css not being applied to the td itself - check the source of your html to see whether it is being printed in the html code at all.

Can I just clarify - do you want to alternate row colouring for each category or keyword? If it is each category, then ensure that you are only incrementing the counter when you move to a new category.

I'm having trouble modifying it for my original Add Keywords page - basically there's a previous page that collects the photo info for the photos table, then the user is directed to the add keywords page (so previously the Photo_ID) was passed through as a hidden field :