ballhogjoni Posted May 10, 2007 Share Posted May 10, 2007 Can someone help me figure this out? I am getting this error unexpected '{' for this block of code. if (!empty($row['commments']) { echo '<textarea name="comments" cols="70" rows="5">'.$row['commments'].'</textarea>'; } else { echo '<textarea name="comments" cols="70" rows="5">Comments (250 Characters Max)</textarea>'; } Link to comment https://forums.phpfreaks.com/topic/50827-solved-unexpected/ Share on other sites More sharing options...
effigy Posted May 10, 2007 Share Posted May 10, 2007 Parens must be paired. if (!empty($row['commments'])) { Link to comment https://forums.phpfreaks.com/topic/50827-solved-unexpected/#findComment-249930 Share on other sites More sharing options...
ballhogjoni Posted May 10, 2007 Author Share Posted May 10, 2007 Oh ya, forgot to add it. Thx Link to comment https://forums.phpfreaks.com/topic/50827-solved-unexpected/#findComment-249932 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.