Ver Mensaje Individual
  #5 (permalink)  
Antiguo 06/05/2009, 05:27
davidd991
 
Fecha de Ingreso: abril-2009
Mensajes: 46
Antigüedad: 15 años
Puntos: 0
Respuesta: Mensaje de error si no existe campo

Código PHP:
$test = @msyql_query("SELECT ns FROM articulos WHERE ns = '$_POST[numero]'"$conexion);
    
$fila mysql_fetch_rows($test);

    if (
$fila 0) (Tambien lo he probado con $fila == 0)
    {
    echo 
"error";
    }
    else
    {
    
$consulta = @mysql_query("DELETE FROM articulos WHERE ns = '$_POST[numero]'"$conexion);
    } 
que tengo mal? no me muestra ni me hace nada