I have a little question regarding the use of double quote and single quote.
When I use the code below with double quotes echo ""
:
$result_entries = mysqli_query($con,"SELECT * FROM bhost_entries where author_u_id='$user_info[u_id]'");
while($entries = $result_entries->fetch_object())
{
echo "
<tr>
<td>
{$entries->title}
</td>
</tr>
";
}
..output will be
Entry1
Entry2
Entry3
etc..
But when I use the same code with single quote echo ''
I'll get:
{$entries->title}
{$entries->title}
{$entries->title}
etc..
as output.
Why do they behave differently?
Appreciate any thoughts.