You are here: Re: [PHP] More function troubles « PHP « IT news, forums, messages
Re: [PHP] More function troubles

Posted by Chris Ramsay on 03/18/05 12:25

Sorry, didn't actually answer your question!

Missing argument 2 for check_zero() in
> c:\Inetpub\wwwroot\ecurry\order.php on line 5

means that you have not supplied all the neccessary arguments to the
function you are calling - is it check($arg1, $arg2) or
check_zero($arg1, $arg2)?...

CHeers


On Fri, 18 Mar 2005 10:21:00 +0000, Chris Ramsay <raz.net@gmail.com> wrote:
> On Fri, 18 Mar 2005 10:15:08 -0000, AndreaD
> <andrea.davidson@silene.co.uk> wrote:
> > Still strugglin through with the PHP stuff......
> >
> > I keep getting a Warning: Missing argument 2 for check_zero() in
> > c:\Inetpub\wwwroot\ecurry\order.php on line 5
> >
> > if ($name == "andrea") {
> > $experience= 2;
> > $age= 24
>
> where's the semicolon @ the end of line 3?
>
> > check_zero($age, $experience);
> >
> > }
> >
> > This calls check which is at the very top of the page
> >
> > function check($age, $experience){ // this is line 5
> >
> > $total= $age * $experience;
> >
> > if (total > 50) {
> > echo "you have enough experience";
> > }
> > }
> >
> > What is the usual reason for this?
> >
> > Thanks for your replies,
> >
> > AD
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> Cheers...
>

 

Navigation:

[Reply to this 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

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