I'm pretty new at this.

So I have this array called $nextthreemonths which contains three values, say.. 05, 06, and 07.

I have this SELECT query that reads:
PHP Code:
$query "SELECT * FROM $table WHERE (month = $nextthreemonths AND year = $today_year) OR (month = $today_month AND year = '0') ORDER BY day"
...which produces a "mysql_numrows(): supplied argument is not a valid MySQL result resource" warning.

What is the proper way of handling an array inside a SELECT query?

Thanks much,
-g