Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/08/2005, 09:59
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 5 meses
Puntos: 11
Código PHP:
//1era forma:

$maximostatus mysql_query("SELECT status_2 FROM provider_call_log WHERE provider_call_log_id = $var ") or die(mysql_error());

//En lugar de mysql_error() puede ir un mensaje personalizado.

//2da forma

$maximostatus mysql_query("SELECT status_2 FROM provider_call_log WHERE provider_call_log_id = $var ");
if (
$maximostatus//tambien podria ser: if (isset($maximostatus))
{
    
//se recorre el arreglo
}
else
{
    
//indicamos el error