loadVariables in a class?

Fellow kirupians!

Hope someone can help me with this.

I have a calendar-class and I want to see if there is a post in my database for any of the dates. I was thinking a nested loop, the first one loops through the dates of the month and the nested one compares variables with the date.

loadVariablesNum(“http://url/page.asp”, 0)

for (q = 1; q <= Days; q++){
//load ‘day-symbol’
for(x = 1; x == 10; x++){
if(q == someArray[x]){

//someArray[] from loadVariablesNum

                  //mark day...

Could be a stupid question but I´m new at this…
Very thankful for all help!