Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/08/2010, 04:20
Avatar de MarioAlejandroCR2
MarioAlejandroCR2
 
Fecha de Ingreso: mayo-2010
Ubicación: Esparza - Puntarenas
Mensajes: 98
Antigüedad: 14 años
Puntos: 2
Eliminar campo con where y uso un integer

De hecho utilizo este procedimiento almacenado pero me da un error
Código MySQL:
Ver original
  1. DELIMITER //
  2.  
  3. CREATE DEFINER=`root`@`localhost` PROCEDURE `delComentario`(in idcom INT)
  4. delete from comentario where idcomentario=idcom;   
  5. end//

Cuando lo ejecuto en php:

Notice: Undefined index: idcomentario in C:\Archivos de programa\Apache Software Foundation\Apache2.2\htdocs\ti\delcomentario.php on line 51 Incorrect integer value: '' for column 'idcom' at row 1

Así recibe idcomentario:
echo "<div><input name='idnoticia' value='".(int)$row_regis2['idcomentario']."' type='text' size='80' maxlength='9' /></div>


De antemano gracias

Última edición por MarioAlejandroCR2; 11/08/2010 a las 04:38