08/09/2010, 13:28
|
| | Fecha de Ingreso: abril-2010
Mensajes: 229
Antigüedad: 14 años, 10 meses Puntos: 3 | |
Respuesta: Warning: fopen(Foto.jpg) [function.fopen]: failed to open stream: No such El codigo el es siguiente
<form id="FormEmp" name="Empleados" method="POST" action ="guardar.php">
<input type="file" name="foto" enctype="multipart/form-data">
</form>
para agregar la foto lo hago de la siguiente manera
$tipus01=$_FILES["Foto"]["type"];
$nom01=$_FILES["Foto"]["name"];
echo $nom01;
$tito101=$_POST['descripcion01'];
$identificacion=$_POST['identificacion'];
$contingut=addslashes(fread(fopen($Foto,"r"),files ize($Foto)));
$sql = "INSERT INTO Empleados(Foto_empleado)";
$sql .=VALUES('$contingut')";
$result = mysql_query($sql);
este codigo lo obtube de internet si pueden ayudarme se los agradecere mucho. |