Mở files muốn add thêm vào đâu cũng đươc chú ý nên gần code hiển thị mình up dưới nha.
Code trái tim <?php
$like = $datauser['thank_duoc']*1;
if ($like >= 0 && $like <30)
{
$thank = '♥';
}
if ($like >= 30 && $like <70)
{
$thank = '♥♥';
}
if ($like >= 70 && $like <150)
{
$thank = '♥♥♥';
}
if ($like >= 150 && $like <300)
{
$thank = '♥♥♥♥';
} ...