The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> syntax error
tudsy
post Aug 10 2016, 04:50 AM
Post #1


Advanced Member
****

Group: Members
Posts: 246
Joined: 30-September 14
Member No.: 21,611



Hi


I am having problems in finding the following error in my code:


Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /home/ecovibdc/public_html/ECOVIB2D/MYART/ecovib2d.php on line 75


Can any one help?


Attached File(s)
Attached File  code.txt ( 3.78k ) Number of downloads: 280
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Aug 10 2016, 08:24 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,650
Joined: 10-August 06
Member No.: 7



On lines 69 and 88 there are nested echo statements.

You're also running PHP inside the echo statement (e.g. defining variables inside the echo statements on line 49 and 73), which may give unexpected results.

CODE
$x='foo';
echo "$x='bar'";

(the above echoes foo='bar', it does not assign the value "bar" to $x).
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 17th April 2024 - 09:21 PM