MDanz Posted September 10, 2009 Share Posted September 10, 2009 $reply = $runrows['reply']; $text = '[quote]$reply[/quote]'; when i echo $text it says [quote]$reply[/quote] , when i want it to say the actual reply when i use speechmarks instead like "[quote]$reply[/quote]"; then i get a parse error Parse error: syntax error, unexpected '/', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/ustackc1/public_html/reply.php on line 367 whats the correct way to use the speech marks so its simply echos like [quote] whateva the reply is[/quote] Link to comment https://forums.phpfreaks.com/topic/173795-solved-parse-error/ Share on other sites More sharing options...
Adam Posted September 10, 2009 Share Posted September 10, 2009 I couldn't make out what you were trying to say there, but it should be: $text = '[b][quote]$reply[/quote][/b]'; Link to comment https://forums.phpfreaks.com/topic/173795-solved-parse-error/#findComment-916110 Share on other sites More sharing options...
MDanz Posted September 10, 2009 Author Share Posted September 10, 2009 srry i changed it.. that was just to highlight the problem where the code was but i used the code tab on the forum.. have another look.. Link to comment https://forums.phpfreaks.com/topic/173795-solved-parse-error/#findComment-916111 Share on other sites More sharing options...
Bricktop Posted September 10, 2009 Share Posted September 10, 2009 Hi MDanz, Try: $text = '[quote]'.$reply.'[/quote]'; Link to comment https://forums.phpfreaks.com/topic/173795-solved-parse-error/#findComment-916112 Share on other sites More sharing options...
MDanz Posted September 10, 2009 Author Share Posted September 10, 2009 thx it works... Link to comment https://forums.phpfreaks.com/topic/173795-solved-parse-error/#findComment-916113 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.