Reply to Re: Use parameters within a Function, please help me

Your name:

Reply:


Posted by Michael Fesser on 11/17/06 10:17

..oO(BabyBlue)

>here is exactly my code:
>
>$article = get_articles(cat=4&numberposts=6);

Should be

$article = get_articles(4, 6);

>However, I want to pass 2 parametes cat and numberposts from another
>function, so I must write another function:
>
> function display_cat($new_cat=1,$new_num=1,$othercontent="")
> {
> $article=get_articles(cat=$new_cat&numberposts=$new_num)

Should be

$article = get_articles($new_cat, $new_num);

> }

Micha

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация