grazie della risposta ti dico cosa ho fatto e non mi funzia porcaaaaa, anche le cose semplici oggi non vanno.
Non mi prende nemmeno un dato dal db e non so perchè e inoltre mi dice che elseif è sbagliato..:-(((( mi sembra di non sbagliare niente, ho controllato e dovrebbe funzionare. ho preso solo il primo if e mi fa vedere le parti statiche ma non quelle dinamiche. che triste
<?
include('function_db.php');
error_reporting(0);
$link_id = db_connect();
$result = mysql_query("SELECT width, height, type, nome FROM banner ");
while($dati = mysql_fetch_array($result))
if ($type == swf);
{
echo "<img src= \"http://www.web4u.it/evolution/banner/" . $dati["$nome"] . "." . $dati["$type"] . "width=\"" . $dati["$width"] . "\"" . "height=\"" . $dati["$height"] . "\">";
}
elseif ($type == jpg);
{
echo "<embed src= \"http://www.web4u.it/evolution/banner/" . $dati["$nome"] . "." . $dati["$type"] . "width=\"" . $dati["$width"] . "\"" . "height=\"" . $dati["$height"] . "\"</embed>";
}
?>