Reply to Re: still not working: why?

Your name:

Reply:


Posted by Schraalhans Keukenmeester on 05/29/07 05:15

At Mon, 28 May 2007 16:56:34 -0700, vinnie let h(is|er) monkeys type:

> hi guys, i'm just at the beginning. I apologize. the file still gives
> me back an error:
>
> <<Parse error: syntax error, unexpected T_VARIABLE, expecting
> T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in d:\tryphp.php on line
> 19>>
>
> why? Can someone fix it so i can "study" the working one?
>
> class somma
> {
> var $uno=10;
> var $due=15;
> var $tre=15;
> function sum($uno,
> $due, $tre)
> {
>
> $totale = $uno + $due + $tre;
>
> return($totale);
> }
> function sum_2()
> {
> $totale = $this->sum($this->uno, $this-
>>due, $this->tre);
> return $totale;
> print("$totale");
> }
> $somma=new_somma();
> $sum=$somma->(34,40);
> print("$sum");
> }

Vinnie, are you sure this isn't homework (again!) ? Your first msg clearly
stated:

> please help me, i have a test!

I cannot help but think you hardly have a clue about PHP's syntax and
semantics. If you read the replies carefully the answer is already there,
but it seems you just want us to deliver the working code for you.

Sorry, no can do.


--
Schraalhans Keukenmeester - schraalhans@the.spamtrapexample.nl
[Remove the lowercase part of Spamtrap to send me a message]

"strcmp('apples','oranges') is -1"

[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

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