
01/05/2003, 22:57
|
 | | | Fecha de Ingreso: abril-2003 Ubicación: Chepe
Mensajes: 202
Antigüedad: 21 años, 10 meses Puntos: 0 | |
Talvez tambien te pueda servir este script para manejar las imagenes en la DB tipo binario (BOB), es una funcion que utilizo para editores:...
function llenar ($image, $imagesize,$titulo,$noticia,$encabezado,$tipo) {
$link=mysql_connect("server","usuario","password") ;
mysql_select_db("test",$link);
$imagen = fopen ($image, "r");
$insima=addslashes(fread ($imagen, $imagesize));
$sql="INSERT INTO noticias (id_tipo, titulo, noticia, encabezado , imagen ) VALUES ( " . $tipo . ", '" . $titulo . "','" . $noticia ."','" . $encabezado . "', '" . $insima . "')";
mysql_query($sql,$link);
fclose ($imagen);
echo mysql_error ($link);
mysql_close($link);
}
ojala te ayude de algo....
pura vida |