Ver Mensaje Individual
  #5 (permalink)  
Antiguo 29/03/2003, 11:30
rashid
 
Fecha de Ingreso: enero-2002
Ubicación: Perez Zeledon Costa Rica
Mensajes: 1.009
Antigüedad: 22 años, 3 meses
Puntos: 11
ahy donde esta el error, ahora lo hago asi:

$checkcTitle = "select COUNT(*) from comercials were cTitle=".$title."";
$result = mysql_query($checkcTitle);
if (mysql_result($result,0) > 0){

//if (!$result){

echo "that Comercial Name (".$title.")is taken -go back and chose another one.";
echo $checkcTitle;
}else{
inserto aqui
}

y me manda el mismo error de siempre>

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /bdb3.php on line 78

y en esta linea lo que tengo es:

if (mysql_result($result,0) > 0){


por ke no me correeeee?????