Come ha fatto notare biagiopas il problema te lo dà lì ma probabilmente è due righe sopra:
fatti stampare cosa contiene $file_offert_array.Codice PHP:$file_offert_array = $db->query_objects_array("SELECT * FROM files WHERE files.attribute_id = $id_offert");
oppure fatti stampare
Codice PHP:echo "SELECT * FROM files WHERE files.attribute_id = $id_offert";
e poi provala direttamente sul db per vedere se va a buon fine o se ti dà errore....

Rispondi quotando