Ciao, grazie per aver spostato nel topic giusto. Quello che non ho capito, come faccio a prelevare x foto di quel determinato utente?

Aggiungo un dettaglio che avevo dimenticato di specificare, e che potrebbe essere utile. I dati vengono prelevati tramite una chiamata ajax, salvati in un array json:

esempio :

Codice PHP:
$sql "SELECT * FROM utenti where tipo_cat = $id_categoria";

    
$res mysql_query($sql);
    
$data = array();

    if(
$res === FALSE) {        
        die(
mysql_error());   
    }
    while(
$row mysql_fetch_array($res))   
            {       
                 
$data[] = $row;    
            }
           echo 
json_encode($data);