Ver Mensaje Individual
  #4 (permalink)  
Antiguo 30/08/2011, 08:25
thedarking
 
Fecha de Ingreso: julio-2011
Ubicación: Argentina
Mensajes: 38
Antigüedad: 12 años, 9 meses
Puntos: 0
Respuesta: Subir Archivos con PHP(algo que me es imposible)

ya logre subir imagenes al servidor...pero como hago para que en phpmyadmin aparezca la id del equipo el nombre del equipo y el link del logo??

la bd ya la tengo configurada...como hago?


Gracias de antemano

aki les dejo los archivos x si alguien los necesita :)

Código PHP:
<html><head></head>
<
body>


<
/>
<
form action="upload.php" method="post" enctype="multipart/form-data">
    
Equipo:&nbsp;&nbsp;<input type="text" name="equipo" /><br /></>
    
Archivo: <input name="logo" type="file" accept="image/*"><br /></>
    <
input name="submit" type="submit" value="Enviar"
</
form

</
body>
</
html
Código PHP:
<?php
if (isset($_POST['submit'])) { 
    if(
is_uploaded_file($_FILES['fichero']['tmp_name'])) { 
        if(
move_uploaded_file($_FILES['fichero']['tmp_name'], './logos/' $_FILES['fichero']['name'])) ;
    }
 

}
?>

<html>
<head>
</head>

<body>

<div>
    <center>
    Imagen cargada con Exito!<br />
    <a href="./equipos.html"><button>Volver al &Iacute;ndice</button></a></center>
</div>

</body>

</html>

Última edición por thedarking; 30/08/2011 a las 10:31