Tema: upload files
Ver Mensaje Individual
  #15 (permalink)  
Antiguo 12/05/2005, 11:56
Avatar de maralbust
maralbust
 
Fecha de Ingreso: febrero-2004
Ubicación: Santiago
Mensajes: 578
Antigüedad: 20 años, 2 meses
Puntos: 0
Ahora hice este otro,

Código PHP:
require_once('db_mysql.php');
require_once(
'auth.php');

if (!isset(
$accion) || $accion == '')
    {
    if (isset(
$idAuth)) $accion 'home';
    else 
$accion 'portal';
    }
    if (
$accion == 'agregarRuta')
    {
    global 
$idRuta;
    
$db = New DB_SQL;
    if (isset(
$idRuta) && $idRuta != '')
        {
        
$stmt "INSERT INTO files (idUsuario, Ruta) VALUES ('$idAuth', '$ruta')";
        }
    
$db->query($stmt);
    } 
pero no me inserta nada, solo me sube el archivo, que puede ser?


salu2
__________________
..:: NADA SE PIERDE SOLO SE TRANSFORMA ::..