Php error

Solved/Closed
akosirash Posts 2 Registration date Friday 8 March 2013 Status Member Last seen 9 March 2013 - 8 Mar 2013 à 11:28
akosirash Posts 2 Registration date Friday 8 March 2013 Status Member Last seen 9 March 2013 - 9 Mar 2013 à 15:48
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 responses

rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 766
9 Mar 2013 à 11:07
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>";
akosirash Posts 2 Registration date Friday 8 March 2013 Status Member Last seen 9 March 2013
9 Mar 2013 à 15:48
thank you.. :)