Hello,
Eval must be a statement, not an expression.
eval("\$result=$number1+$number2;");
print $result;
John
""Bartek Pawlik"" <[EMAIL PROTECTED]> wrote in message
003101c0c0d6$48546a40$539f4dd5@administrator">news:003101c0c0d6$48546a40$539f4dd5@administrator...
Hi,
Sorry, but it's no connected with PHP+DB, but I can't find answer enywhere
Supouse I have
$number=123;
what i want is
eval ("$kg"+$number) and print it.
PS. $number takes different values;
Thanks in advance
Bartek Pawlik
Poland
--
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]