Hi,
> I do not know how exactly this function
> is designed , but I wonder if there is any way
> to use type parameter two values?
I think the current implementation does not allow it:
<snip file="php4/article.c" function="list_topic_articles">
else
php_midgard_select(&MidgardArticle, return_value,
ARTICLE_SELECT, ARTICLE_FROM,
"article.type=$d AND article.topic=$d"
^^^
" AND (article.up=$d OR 1=$d)"
" AND author=person.id",
sortv, typev, (*id)->value.lval, up,
up_wild);
</snip>
typev's type has to be "long"...
> For example want to list articles with type 0 or 2.
> Using logical operators to define my $type I always
> get one parameter.
If you did something like:
$type = 1 | 2; // => 3
$type = 1 & 2; // => 0
so you are right, you always get one paremeter.
Regards
Peter
--
Nonsense-Message of the mail:
"Die Arbeit in Meditation ist g�tig."
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]