Add Span in php last div don't work :(
**How to Add span in php code **
echo"
<tr>
<td>$id</td>
<td>$name</td>
<td>$lastname</td>
<td>$email</td>
<td>$login</td>
<td>$password</td>
<td class="td-actions">
<a class="btn btn-default btn-xs" href="logout.php">
<span class="glyphicon glyphicon-pencil"></span> Edit
</a>
</td>enter code here
</tr>";
Since your echo
is using "
to indicate where the text begins and ends, you'll need to escape the "
within the text itself with a \
:
echo "
<tr>
<td>$id</td>
<td>$name</td>
<td>$lastname</td>
<td>$email</td>
<td>$login</td>
<td>$password</td>
<td class=\"td-actions\">
<a class=\"btn btn-default btn-xs\" href=\"logout.php\">
<span class=\"glyphicon glyphicon-pencil\"></span> Edit
</a>
</td>enter code here
</tr>";