Ciao!
ho un problema.
Creando un db con la seguente table
create table news(
idn1 int(11) NOT NULL auto_increment,
titolo1 char(20) NOT NULL,
mini1 char(20) NOT NULL,
news1 char(20)NOT NULL,
pub char(20)NOT NULL,
foto blob NOT NULL,
Type varchar(50)NOT NULL,
primary key(idn1)
)
mandando in esecuzione il seguente file notizie.php
<?php
@mysql_connect("localhost", "root", "") or die("Connessione fallita !");
@mysql_select_db("PORTALE") or die("Selezione Database fallita !");
$query = "SELECT foto,news1, Type from news ";
$select = @mysql_query($query) or die("Query fallita !");
$result = @mysql_fetch_array($select);
$notizia=$result["news1"];
$data= $result["foto"];
$type = $result["Type"];
Header("Content-type: $type");
echo $data;
echo"
";
echo $notizia;
?>
stampa la foto ma non la notizia
qualcuno mi può dire perchè?
Ciao a tutti!