Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/01/2011, 12:37
Avatar de floog
floog
 
Fecha de Ingreso: enero-2006
Mensajes: 191
Antigüedad: 18 años, 4 meses
Puntos: 2
Exclamación En que me equivoco

hola tengo la siguiente estructura para agragar registros en la tabla
Código PHP:
<?
//conexion base de datos
include ('dbopen.php');

// variables

$ref $_POST["reg_ref"];
$cat $_POST["reg_categoria"];
$scat $_POST["reg_subcategoria"];
$titol $_POST["reg_titulo"];
$causa $_POST["reg_causa"];
$texto $_POST["reg_descripcion"];
$anejos $_POST["reg_anejos"];
$acciones $_POST["reg_acciones"];
$fecha date ("Y/M/ D");
$estado "En curso";

print 
$_POST;

// insertamos datos en la base de datos

$agregar "INSERT INTO registros (reg_ref, reg_categoria, reg_subcategoria, reg_titulo, reg_fecha, reg_causa, reg_descripcion, reg_anejos,
                                    reg_estado, reg_acciones)
                                    VALUES ('$ref',
                                            '$cat',
                                            '$scat',
                                            '$titol',
                                            '$fecha',
                                            '$causa',
                                            '$texto',
                                            '$anejos',
                                            '$estado',
                                            '$acciones')"
;
mysql_query ($agregar) or die (mysql_error());
header ("Location:/intranet/calidad/registro_agregar.php");
?>
alguien sabe decirme donde esta el fallo porque no se me agregan los registros en absoluto

Última edición por floog; 13/01/2011 a las 12:38 Razón: El print $_Post lo puse para ver que estaba recibiendo y me da como mensaje:array