Php error

Solved/Closed
akosirash Posts 2 Registration date Friday March 8, 2013 Status Member Last seen March 9, 2013 - Mar 8, 2013 at 11:28 AM
akosirash Posts 2 Registration date Friday March 8, 2013 Status Member Last seen March 9, 2013 - Mar 9, 2013 at 03:48 PM
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 January 28, 2010 Status Contributor Last seen May 5, 2022 766
Mar 9, 2013 at 11:07 AM
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
akosirash Posts 2 Registration date Friday March 8, 2013 Status Member Last seen March 9, 2013
Mar 9, 2013 at 03:48 PM
thank you.. :)
0