Ver Mensaje Individual
  #6 (permalink)  
Antiguo 10/04/2012, 12:26
ggtc
 
Fecha de Ingreso: abril-2012
Ubicación: minas
Mensajes: 10
Antigüedad: 12 años, 1 mes
Puntos: 0
Respuesta: Problemas para editar en mysql

Cita:
Iniciado por p414 Ver Mensaje
Notice: Undefined index: action in C:\xampp\htdocs\proyecto\editar.php on line 7

Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\proyecto\editar.php on line 24


ok aki te indica que no ha recibido ningun valor por lo tanto no puede ejecutarse

Warning: mysql_affected_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\proyecto\editar.php on line 25


esto es exactamente lo mismo que el anterior



Unknown column 'id' in 'where clause'

y aqui te indica que no existe la columna "id", podrias indicar tu BD ????

ya pude sacar unos de los errores pero ahora me sigue tirando estos 2 :

Notice: Undefined index: action in C:\xampp\htdocs\proyecto\editar.php on line 7

Warning: mysql_affected_rows(): supplied resource is not a valid MySQL-Link resource in C:\xampp\htdocs\proyecto\editar.php on line 25


la base de datos:
CREATE TABLE IF NOT EXISTS `empresa` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nombre` varchar(100) NOT NULL,
`direccion` varchar(100) NOT NULL,
`telefono` int(8) NOT NULL,
`imagen` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=39 ;