Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/12/2010, 08:28
kozenko
 
Fecha de Ingreso: octubre-2010
Mensajes: 83
Antigüedad: 13 años, 6 meses
Puntos: 1
Leer base de datos

Código PHP:
$link mysql_connect('localhost''root');
if (!
$link) {
    die(
'Not connected : ' mysql_error());
}
$sql "SELECT rta FROM some_table WHERE cmd = '" mysql_real_escape_string($mensaje) . "'";
$result mysql_query($sql);
if (
mysql_num_rows($result) > 0) {
$row mysql_fetch_array($result);
                
$this->send_data('PRIVMSG'$this->ex[2].' :'.$row['cmd']);} 
tengo ese code y me da este error:
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in D:\wamp\www\Bot\Wildbot.php on line 127

aviso: line 127: linea 8 en el code

no entiendo el error, espero que me puedan ayudar