February 28, 201115 yr Morning to all of you guys up at this time. I have been working on a guestbook script and it's going well but I thought of a cool feature I'd like to implement and I'm wondering what's the best way of doing this. What I need to happen is: When a admin/moderator comments on the guestbook their text will echo out differently (Red bold text etc) compared to a normal user. The admin/moderator form is passworded in another directory. I don't really want to make a login script at this stage. I thought about having a separate table to hold these special comments but when I echo it the same way all of the admin comments will be at the top. I really need the admin comments to go under the normal users comments. What's the best way of implementing this feature? Thanks for reading! Sorry if I haven't made it clear enough.
February 28, 201115 yr Just whack in another field in the table for admin posts. Set this to 1, true, whatever when you add something as an admin and then check for that when printing output.
Create an account or sign in to comment