este codigo
include("conexion.php");
$link=Conectarse();
$result=mysql_query("select * from imagenes",$link);
$num=mysql_num_rows($result);
$idd=$num+1;
$id=$idd;
$empresa=$_POST["emp_prod"];
$categoria=$_POST["cat_prod"];
$nombre = $_POST["nom_prod"];
$imagen =addslashes(fread(fopen($imagen,"r"), filesize($imagen)));
$descripcion=$_POST["desc_prod"];
$precio_den=$_POST["prec_dent"];
$precio_pub=$_POST["prec_publi"];
mysql_query("INSERT INTO imagenes (id,empresa,categoria,nombre,imagen,descripcion,pr ecio_dent,precio_publ)
VALUES ('$idd','$empresa','$categoria','$nombre','$imagen ','$descripcion','$precio_den','$precio_pub')",$li nk);
?>
Y ME DA ERROR EN LA LINEA DE LA $IMAGEN
CON LO SGTE Warning: fread(): supplied argument is not a valid stream resource in c:\appserv\www\final\guardar.php on line 17
podrian ayudarmne plis
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)