Ver Mensaje Individual
  #8 (permalink)  
Antiguo 29/03/2003, 12:26
rashid
 
Fecha de Ingreso: enero-2002
Ubicación: Perez Zeledon Costa Rica
Mensajes: 1.009
Antigüedad: 22 años, 2 meses
Puntos: 11
gracias ppor ese error en el where, era una falta de ortografia.

pero ahora lo tengo

$consulta = "SELECT * FROM comercials WHERE `cTitle` = '$title'";
$result = mysql_query($consulta);
$rows = mysql_num_rows($result);
if (mysql_num_rows($result,0) > 0){

//if (!$result){

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


y me da error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /bdb3.php on line 83

Warning: Wrong parameter count for mysql_num_rows() in bdb3.php on line 84

esas lkineas son:

$rows = mysql_num_rows($result);
if (mysql_num_rows($result,0) > 0){

tonces????????