Ciao a tutti,

ho un problema con il seguente codice
Codice PHP:
    $query20 "SELECT * 
                FROM  `posts` 
                WHERE  `to_id` 
                LIKE  '
$id
                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);
    for ( 
$i $i 10 $i++) { 
    while (
$unpost $mysql_fetch_row($allah))
    {
        
extract($unpost); 
Praticamente quando vado ad eseguire mi riporta il seguente errore:
Fatal error: Function name must be a string in profile.php on line 376
La riga 376 equivale a
Codice PHP:
$num_righe $mysql_num_rows($result);