I am having problems to figure out the code for an array.
Here is the scenario.
Everyday we are adding articles into our database. So far we are able to show the last 10 added articles so that people can always see what is new on our site. But we also have all the articles rated. For example if one of the ten last articles was a news article we would like to give this first ranking.
In order to do this we associate with each article a document ranking variable that can be anything between one and two.
I am coding for hours and I can't get this solved.
Maybe somebody could give me a small hint about how i could work this problem?
Thank you in advance
andrea