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. 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"; 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! 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
Archived
This topic is now archived and is closed to further replies.