Hey guys -
I have a custom news submission service on my site and I'm trying to give it the ability to stick news. I've created the database field and added the field to all the templates.
I have a drop down menue with the options "Yes" and "No"
Basically, if a staff member selects "Yes" the item will remain atop of the news on the page. However, I just can't think of how to accomplish that with an else statement.
Attached is the text of my php coding that I use to retrieve news from the database. I know it's not the cleanest of coding, but it's definitely neat.
If anyone could look at it and give suggestions on how to accomplish this... I would really, really appreciate it!
Thank you very much for your time!
Sincerely,
Andrew
I have a custom news submission service on my site and I'm trying to give it the ability to stick news. I've created the database field and added the field to all the templates.
I have a drop down menue with the options "Yes" and "No"
Basically, if a staff member selects "Yes" the item will remain atop of the news on the page. However, I just can't think of how to accomplish that with an else statement.
Attached is the text of my php coding that I use to retrieve news from the database. I know it's not the cleanest of coding, but it's definitely neat.
If anyone could look at it and give suggestions on how to accomplish this... I would really, really appreciate it!
Thank you very much for your time!
Sincerely,
Andrew
Comment