così non va perchè $row[foto] non esiste.
metti $row['foto'] con gli apici