Code: Select all
echo "<span style = "color:red">" $firstname.' '.$lastname</span>.':';
Moderator: General Moderators
Code: Select all
echo "<span style = "color:red">" $firstname.' '.$lastname</span>.':';
Code: Select all
echo '<span style = "color:red">'.$firstname.' '.$lastname</span>.':';You need to escape those quotes.gammaman wrote:How would I get span style to work in the following context. Mine has an error.Code: Select all
echo "<span style = "color:red">" $firstname.' '.$lastname</span>.':';
Code: Select all
echo "<span style = \"color:red\">{$firstname} {$lastname}</span>:";Code: Select all
echo '<span style = "color:red">' . $firstname . ' ' . $lastname . '</span>:';Still wrong at the end, </span> was not quoted.andym01480 wrote:Code: Select all
echo '<span style = "color:red">'.$firstname.' '.$lastname . '</span>:';