fai così:

Codice PHP:
$query=INSERT INTO $tabella VALUES ('''$nome''$foto'); 
ciao