PHP echo not displaying inside of HTML tags -
PHP echo not displaying inside of HTML <h3> tags -
on page, have bunch of info fetched sql database via php pdo.
$query=$pdo->prepare("select `balance`,`followers`,`following` `users` `username`=?"); $query->bindvalue(1,$logged); $query->execute(); $followerslist=$query->fetch(); $userbalance=$followerslist['balance']; ?> <div class="span4"> <h3> <?=$userbalance;?> </h3> </div> the above displays nothing. blank. however, when remove <h3> tags, works! if echo $userbalance; outside of <h3> block, works well. if alter $userbalance equal random text instead of info set sql table, works within <h3> block. reason refuses display info coming sql table.
yet, whenever echo "followers" , "following" within same <h3> blocks, works. clear, "balance" numerical value.
found problem!
inside "bootstrap.css" there line called " text-rendering: optimizelegibility; ". 1 time disabled this, worked again. help!
php html mysql sql pdo
Comments
Post a Comment