Php error

[Solved/Closed]
Report
Posts
2
Registration date
Friday March 8, 2013
Status
Member
Last seen
March 9, 2013
-
Posts
2
Registration date
Friday March 8, 2013
Status
Member
Last seen
March 9, 2013
-
Hello,

Can someone help me with this error, please.....

PHP Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING

the problem line of code is the following:

<a href='parent.php?parentid= <? $row['parentid']?>'>Add Child Subject</a>";


what is causing the error?

thanks.. :)

2 replies

Posts
4476
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
August 2, 2020
768
Beside that your line in that you pasted never started with " but ends with it
the issue is you need to escape '


https://www.thoughtco.com/how-to-install-and-run-perl-2641103

"<a href=\'parent.php?parentid= <? $row['parentid']?>\'>Add Child Subject</a>";
1
Thank you

A few words of thanks would be greatly appreciated. Add comment

CCM 2821 users have said thank you to us this month

Posts
2
Registration date
Friday March 8, 2013
Status
Member
Last seen
March 9, 2013

thank you.. :)