CincoPistolero Posted June 4, 2009 Share Posted June 4, 2009 can anyone tell me what is wrong with the below line of code. I get this error: Parse error: syntax error, unexpected '<' echo "<textarea rows='10' cols='40' name='notes'>" . <?php echo $row['notes']; ?> . "</textarea>"; Quote Link to comment https://forums.phpfreaks.com/topic/160961-solved-im-blind/ Share on other sites More sharing options...
wildteen88 Posted June 4, 2009 Share Posted June 4, 2009 You cannot use PHP within PHP. Your line should be echo "<textarea rows='10' cols='40' name='notes'>" . $row['notes'] . "</textarea>"; Quote Link to comment https://forums.phpfreaks.com/topic/160961-solved-im-blind/#findComment-849438 Share on other sites More sharing options...
gijew Posted June 4, 2009 Share Posted June 4, 2009 Err, what he said. Too quick for me! echo "<textarea rows='10' cols='40' name='notes'>" . <?php echo $row['notes']; ?> . "</textarea>"; should be echo "<textarea rows='10' cols='40' name='notes'>" . $row['notes'] . "</textarea>"; You don't need the <?php tags in there. Quote Link to comment https://forums.phpfreaks.com/topic/160961-solved-im-blind/#findComment-849440 Share on other sites More sharing options...
CincoPistolero Posted June 4, 2009 Author Share Posted June 4, 2009 Y'all rock. Told you I was blind. Can't sleep or the clowns will eat me. Quote Link to comment https://forums.phpfreaks.com/topic/160961-solved-im-blind/#findComment-849545 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.