Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/08/2003, 17:16
infoportal
 
Fecha de Ingreso: abril-2002
Ubicación: las condes
Mensajes: 184
Antigüedad: 22 años
Puntos: 1
Ayuda Con este codigo

bueno tengo este codigo para hacer upload de archivos a mysql bueno tengo problemas en la linea 27 del codigo

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?php

$db = mysql_connect("localhost", "","");
mysql_select_db("",$db); //connects to our mybuddy database
//replace the above two string's with your database specific values

if (isset($binary_File) && $binary_File != "none")
{
$data = addslashes(fread(fopen($binary_File, "r"), filesize($binary_File)));
$strDescription = addslashes($file_description);
$sql = "INSERT INTO binary_data_files ";
$sql .= "(description, bin_data, filename, filesize, filetype, mostrar) ";
$sql .= "VALUES ('$strDescription', '$data', ";
$sql .= "'$binary_File_name', '$binary_File_size', '$binary_File_type', '$mostrar')";

$result = mysql_query($sql, $db);

echo "<font face=verdana size=2>El archivo se añadió exitosamente a nuestra base de datos. <P>";

el eco "<P> <B>Archive el Nombre :</B> ". $binary_File_name; el eco "<BR> el Tamaño <B> delArchivo:</B> ". $Binary_File_size." los byte (approx ". ($Binary_File_size/1024)." KB)"; el eco "<P> <B>Archive el Tipo :</B> ". $mostrar el eco "<P> <B>Seccion :</B> ". } ; mysql_close();?>
</font>

</body>
</html>

si pillan cual es el error me postean más abajo por favor gracias
__________________
Juan Pablo Sánchez