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: http://www.php.net/manual/html/functions.html >.
Regards,
Martin
--
Martin Ramsch <m.ramsch@stripped> <URL: http://home.pages.de/~ramsch/ >
PGP KeyID=0xE8EF4F75 FiPr=5244 5EF3 B0B1 3826 E4EC 8058 7B31 3AD7
| Thread |
|---|
| • parse error | Ali Reza Sajedi | 5 Oct |
| • Re: parse error | Martin Ramsch | 7 Oct |