
29/11/2008, 15:04
|
| | Fecha de Ingreso: noviembre-2008
Mensajes: 2
Antigüedad: 16 años, 3 meses Puntos: 0 | |
Respuesta: PHP MySQL Comprobar si existe un registro "select * from tabla where campo=".$campo;
$resultado=mysql_query($consulta) or die (mysql_error());
if (mysql_num_rows($resultado)>0)
{
print(Exite al menos un registro);
} else {
print(No Existen registros);
}
?> [/I][/B] |