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>'; } Quote 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'])) { Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/50827-solved-unexpected/#findComment-249932 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.