ciao ragazzi,
in un databse ho delle immagini con delle info e per stamparle a video sto utilizzando questo codice:
Codice PHP:
<table summary="" border="1"><?
$flag = true;
$link = mysql_connect("xxx", "xxx", "xxx") or die ("Impossible de se connecter => ".mysql_error());
mysql_select_db ("xxx") or die ("Impossible de se connecter => ".mysql_error());
$query = "select * from tabella_files order by cat";
$res = mysql_query($query) or die(mysql_error());
while ($array = mysql_fetch_assoc($res)) {
if ($flag) {
//------ headers
$flag = false;
$th = array_keys($array);
$a = implode("</th><th>",$th);
$str = "<th>$a</td>\n";
print $str;
} // if ($flag)
//------ dati
$a = implode("</td><td>",$array);
$str = "<tr><td>$a</td></tr>\n";
print $str;
} // while ($array = mysql_fetch_assoc($res)) ?>
</table>
il problema che nel campo in cui dovrebbe farmi visualizzare l'immagine compaiono dei caratteri molto strani in questo modo:
JFIF``C $.' ",#(7),01444'9=82<.342C 2!!222222222222222222222222222222222222222222222 22222 NIT~iweo>moGܫ .N~`8<pԫb ]nx'=N8QBrH: hdKz]1FWP ȧazԏ~s+N"ܔ<68HTOJ&%QR ZH|~RH ]*2p }3ڙu}{ϴG~uu3zQLD0y'Y LV֨!m:Q/Χ}_T. <Ǟ[K))'+VဳY|9\LU#s'"O P(>jH1j06Go{uhqH<z pGk {+y..d-8>EL?Z_)4 Mn] h:I_bj3N DIʀeqeOy](":3NEn-g4iZ͆[PҮ_mx*Y~W!phN ٙ 5r25@$ǨC_,zTJI&e 03e_- nHLH8gSI5C7WXbӜ{p(Nku38ļ2]3OlmI|XÂw1`ACj8 %Q ~f(388 !"" (qplNQl^_i(]ew[n'nNOˎ;f =GEP|8q;רI:_սfh"U `U9 {g˾ gako'Ionx8POF#T=NXͫZk& ,QK*? kzηG=OmvHG~ `zskoI-6:`tO[n?ؖN˩,52M{p_@K]'>÷)Jױr0q5y+IQއ#JUG WtʀtOj < >B1Q za/y4%bZ8Aýb=+TmXoqiq0鵇Z0 AI2qU mrrHZ)*X[CLfBIǟڪK eQ@
come posso fare Grazie Mille