Codice PHP:
$sql "SELECT * FROM tabella.....";  $result mysql_query($sql);  while($row mysql_fetch_array($result)) {  echo $row['categoria']; } 
ok, così metto nel while $row['categoria'] e questo va bene.

Però io devo estrarre anche

$nome;
$img ;

e questi non li voglio nel while, perchè $categoria, ha più di un dato da estrarre dalla tabella ( query con join tra varie tabelle), mentre per gli altri ne ho uno solo.

se metto nel while $row = mysql_fetch_array($result), poi come faccio a usare di nuovo mysql_fetch_array($result) per estrarre $nome; e $img; ?

non so se mi spiego, spero di si!