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>"; 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>"; 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. 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. Link to comment https://forums.phpfreaks.com/topic/160961-solved-im-blind/#findComment-849545 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.