Jump to content

[SOLVED] parse error


MDanz

Recommended Posts

      $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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.