Hi
Can someone fix me this? i'm trying to make a limit of 2 logs. but it seems it doesn't work.
Can someone explain me what i'm doing wrong?
ty
Can someone fix me this? i'm trying to make a limit of 2 logs. but it seems it doesn't work.
Can someone explain me what i'm doing wrong?
Code:
<?php
$q = mysql_query('SELECT user, rank, notes, admin, date FROM logs ORDER BY date DESC LIMIT 0,2');
echo "O usuario <strong>".mysql_result($q, 0, 'user')."</strong> Foi mudado para o rank <strong>".mysql_result($q, 0, 'rank')."</strong> Com a razão de <strong>".mysql_result($q, 0, 'notes')."</strong> Pelo o administrador <strong>".mysql_result($q, 0, 'admin')."</strong> na data <strong>".mysql_result($q, 0, 'date')." </strong>.";
?>
ty