zelig Posted April 4, 2012 Share Posted April 4, 2012 I can't seem to figure this error out... Any help would be appreciated!! echo stripslashes($post['message']) . " --- stripslashes($post['username'])<br>\n" . " on stripslashes($post['time']) ."\n<hr width=90%>\n"; Basically, what I want it to say is: 'message' --- 'username' on 'time' With, of course, 'message', 'username', and 'time' filled in with the info from the database. Quote Link to comment https://forums.phpfreaks.com/topic/260349-unexpected-t_encapsed_and_whitespace-expecting-t_string-or-t_variable-or-t_num/ Share on other sites More sharing options...
batwimp Posted April 4, 2012 Share Posted April 4, 2012 echo stripslashes($post['message']) . " --- ".stripslashes($post['username'])."<br>\n" . " on ".stripslashes($post['time']) ."\n<hr width=90%>\n"; Quote Link to comment https://forums.phpfreaks.com/topic/260349-unexpected-t_encapsed_and_whitespace-expecting-t_string-or-t_variable-or-t_num/#findComment-1334392 Share on other sites More sharing options...
zelig Posted April 4, 2012 Author Share Posted April 4, 2012 Ah, great. Thank you batwimp! Quote Link to comment https://forums.phpfreaks.com/topic/260349-unexpected-t_encapsed_and_whitespace-expecting-t_string-or-t_variable-or-t_num/#findComment-1334393 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.