First off, I would just like to say thank you very much for this amazing script. I hope you get as many thank you's as you deserve, this is truley a real help. I don't know what I would do without it.
However, I'm experiencing an error.
Code:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'catid = '1' OR catid = '2'' at line 1
Now I have 3 different categories set to show up at 3 different places on a single page, as such:
Now whats happening is that it's correctly showing the "Next week" category, however it doesn't show the other two and gives the error I said above right under the latest news. I did some research so before you ask, I do have news in all 3 categories.
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
I can tell you straight away the problem is that you're including the script multiple times within the same page, it was never designed to do this unfortunately.
but! I'll make a couple of changes then post it here, basically it would allow you to have the multiple includes on the one page, but if you wanted to view comments for a particular post you'd either have to show the comments on a different page or have only 1 of your includes do that. Sounds confusing but I'll explain once I've made the changes.
Oh and we wont be using the comment feature on this page, it's kind of like a splash page.
Thank you so much Chris, you should put this on the downloads section, it could prove useful for others. Once I get my next paycheck you can expect a token of my gratitude!