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']);}
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