List:General Discussion« Previous MessageNext Message »
From:Martin Ramsch Date:October 7 1999 2:25am
Subject:Re: parse error
View as plain text  
On Wed, 1999-10-06 16:46:45 +0200, Ali Reza Sajedi wrote:
> could  anybody help me with this parse error.

I guess, this is PHP code?

Please, next time state clearly what your question is about, and even
better, ask a PHP list for PHP questions!

> Parse error: parse error, expecting `'&'' or `PHP_CONST' or `'$'' in
> /home/arsajedi/www/Database1/contact.php3 on line 19
> Function Main_Menu (
> );

You have to use parenthesis for the function parameters and curly
braces for the function body!

   Function Main_Menu() {

Maybe you got confused by old docuemtation on PHP/FI2, but the syntax
of function definitions has changed for PHP3!
See <URL: >.

Martin Ramsch <m.ramsch@stripped> <URL: >
PGP KeyID=0xE8EF4F75 FiPr=5244 5EF3 B0B1 3826  E4EC 8058 7B31 3AD7
parse errorAli Reza Sajedi5 Oct
  • Re: parse errorMartin Ramsch7 Oct