Ciao ragazzi,
ho un problema con la lettura di alcuni record da un db mysql, tuttavia penso il problema sia più 'metodico' : non stampa mai l'ultimo record. Questo che allego qui sotto è il codice.. Qualcuno riesce ad individuare il bug? Grazie
Codice PHP:
$query20 "SELECT * 
                FROM  `posts` 
                WHERE  `to_id` 
                LIKE  '
$woow
                ORDER BY `post_id` DESC"

    
$result mysql_query($query20) or die(mysql_error($db));
    
$gna mysql_fetch_array($result);
    
$num_righe mysql_num_rows($result);
    if (
$num_righe == 
    {
        echo 
"No one post. I'm sorry :( . Let's make the first!";
    }
    else
    {
    for ( 
$i $i <= 11 $i++) { 
    while (
$unpost mysql_fetch_array($result))
    { 
[...]