Mr_J Posted September 12, 2008 Share Posted September 12, 2008 Parse error: syntax error, unexpected T_VARIABLE in /usr/www/users/xxx/xxx/load3.php on line 2 <?php //Expressions: $number = 10 ;//$number = "10" ;]//$number = '10' ;// does not work $value = 3 ; //$value = "3" ;//$value = '3' ;// does not work $sum = $number . $value /n; //$sum = $number + $value// does not work print $sum; //echo $sum; // does not work ?> <html> <body> <a href="http://www.xxx.com/xxx/load4.php">NEXT</a> <!-- just to test... !--> <a href="Javascript:history.go(-1)">BACK</a> <!-- just to test... !--> </body> </html> Link to comment https://forums.phpfreaks.com/topic/123890-numbers-im-stumped/ Share on other sites More sharing options...
Mchl Posted September 12, 2008 Share Posted September 12, 2008 $sum = $number . $value /n; <--- why "/n" here? Remove it Link to comment https://forums.phpfreaks.com/topic/123890-numbers-im-stumped/#findComment-639595 Share on other sites More sharing options...
Mr_J Posted September 12, 2008 Author Share Posted September 12, 2008 $sum = $number . $value /n; <--- why "/n" here? Remove it <--- why "/n" here? Remove it I only added it just now. The browser have a problem with $number = 10; LINE2... But I will remove it Link to comment https://forums.phpfreaks.com/topic/123890-numbers-im-stumped/#findComment-639604 Share on other sites More sharing options...
Mchl Posted September 12, 2008 Share Posted September 12, 2008 The rest of the code works here. Link to comment https://forums.phpfreaks.com/topic/123890-numbers-im-stumped/#findComment-639605 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.