# Calendar-problems

**URL:** https://forum.kirupa.com/t/calendar-problems/65881
**Category:** Uncategorized
**Created:** [September 30, 2004, 9:33am UTC](https://forum.kirupa.com/t/calendar-problems/65881 "2004-09-30T09:33:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pennybridge](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@pennybridge](https://forum.kirupa.com/u/pennybridge)
#### Post date: [September 30, 2004, 9:33am UTC](https://forum.kirupa.com/t/calendar-problems/65881/1 "2004-09-30T09:33:20Z")

</div>

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.

Ex.  
loadVariablesNum(“[http://url/page.asp](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!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 30, 2004, 11:56am UTC](https://forum.kirupa.com/t/calendar-problems/65881/2 "2004-09-30T11:56:10Z")

</div>

Let the db query do the searching for you, and it will return only the matches.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 30, 2004, 12:13pm UTC](https://forum.kirupa.com/t/calendar-problems/65881/3 "2004-09-30T12:13:04Z")

</div>

> [@Jerryscript](#):
>
> Let the db query do the searching for you, and it will return only the matches.

The db query does that.  
Say I have a post on the third of this month, then both the date-loop and the nested loop should have a post with ‘03’ in it. The nested loop isnt translated into the values of the variables. Are you following me?  
I´ve checked the paths of the variables when I test the movie and it looks correct…

Very grateful that you´re taking the time to help!
