so i wanna echo a result from my database and i have successfully done that but im trying to place the result at a specific place on my page.
this is the code
if($result)
{
{
echo "<div class='total'>";
echo "<b>Your Total Income is $total</b>";
echo "</div>";
}
}
and it is appearing at the top left corner of the page but i want it to be at the centre next to a table. ive tried placing the code in my html code where i want it to be but 'undefined variable : result' error came out instead. so could anyone help me out? thanks