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?????