what problem I want to use eval in my script but its generate this error :
Parse error: parse error, unexpected T_LNUMBER in
C:\Projects\phpmag\admin\functions\admin_cont.php(22) : eval()'d code on line 4
Parse error: parse error, unexpected T_LNUMBER in
try
echo \$all_types_list .= \$all_types_list\;;
there should be a syntax error
Alawi wrote:
what problem I want to use eval in my script but its generate this error :
Parse error: parse error, unexpected T_LNUMBER in C:\Projects\phpmag\admin\functions\admin_cont.php(22) : eval()'d code on line
At 12:54 10-3-03, you wrote:
what problem I want to use eval in my script but its generate this error :
Parse error: parse error, unexpected T_LNUMBER in
C:\Projects\phpmag\admin\functions\admin_cont.php(22) : eval()'d code on line 4
eval (\$all_types_list .= \$all_types_list\;);
For those
Felipe Coury wrote:
Hi,
I am a beginner in PHP and I am trying to do the following: I have a form in
a page that has 3 fields: email_1, email_2 and email_3. I am trying to send
e-mail to those people, if the fields are filled. Relevant part of code:
?php
for ($i = 1; $i = 6; $i++) {
Hi,
I am a beginner in PHP and I am trying to do the following: I have a form in
a page that has 3 fields: email_1, email_2 and email_3. I am trying to send
e-mail to those people, if the fields are filled. Relevant part of code:
?php
for ($i = 1; $i = 6; $i++) {
$eval = '\$email =
lots of things:
1) variables in single-quoted strings aren't evaluated so you don't
need to escape the $ in $email
2) php uses . not + for concatenation.
3) try it like this:
eval('$email = $email_'.$i.';');
or
eval(\$email = \$email_$i;);
4) you can save yourself the trouble by using arrays
6 matches
Mail list logo