oi eu estor quereno ajuda tem alguém que pode compera eu agradeso
oque e esse erro a linha 36 esta ai
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in D:\xampp\htdocs\sp0012\Main Access Panel\frm_botsmon_country.php on line 36
message>> ERROR IN SELECTION OF 'COUNTRY_T'
$dbase = db_open();
if (!$dbase) exit;
echo "<h2><b>GEO info</b></h2>";
refresh_bot_info($dbase);
$res = mysqli_query($dbase, "SELECT * FROM country t ORDER BY name country");
echo "<th>Online Bots/<font class='disabled'>Disabled Bots</font> / All Bots</th>";
echo "<th>Detail State</th>";
for ($i = 0; $mres = mysqli_fetch_array($res); $i++) {
$idc = $mres['id_country'];
$res2 = mysqli_query($dbase, "SELECT count(id_bot) FROM bots_t WHERE (fk_city_bot IN (SELECT id_city FROM city_t, country_t WHERE fk_country_city = id_country AND id_country = " . $idc . ")) AND (status_bot <> 'offline')");
$actb_cnt = -1;
if ((@($res2)) && mysqli_num_rows($res2) > 0) {
$mres2 = mysqli_fetch_array($res2);
$actb_cnt = $mres2[0];
}
$res2 = mysqli_query($dbase, "SELECT count(id_bot) FROM bots_t WHERE fk_city_bot IN (SELECT id_city FROM city_t, country_t WHERE fk_country_city = id_country AND id_country = " . $idc . ")");
Pergunta
smaff
oi eu estor quereno ajuda tem alguém que pode compera eu agradeso
oque e esse erro a linha 36 esta ai
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in D:\xampp\htdocs\sp0012\Main Access Panel\frm_botsmon_country.php on line 36
message>> ERROR IN SELECTION OF 'COUNTRY_T'
$dbase = db_open();
if (!$dbase) exit;
echo "<h2><b>GEO info</b></h2>";
refresh_bot_info($dbase);
$res = mysqli_query($dbase, "SELECT * FROM country t ORDER BY name country");
$cnt = mysqli_num_rows($res); LINHA 36 E ESA
if ($cnt > 0) {
require_once 'geoip/geoip.inc';
$gi = new GeoIP;
echo "<script type=\"text/javascript\" charset=\"ISO-8859-1\" src=\"js/alarm.js\"></script>";
echo "<script type=\"text/javascript\" charset=\"ISO-8859-1\" src=\"js/list_stuff.js\"></script>";
echo "<table width='740px' border='1' cellspacing='0' cellpadding='0' style='border: 1px solid gray; font-size: 9px; border-collapse: collapse; background-color: white;'>";
echo "<th>Flag</th>";
echo "<th>Country</th>";
echo "<th>Online Bots/<font class='disabled'>Disabled Bots</font> / All Bots</th>";
echo "<th>Detail State</th>";
for ($i = 0; $mres = mysqli_fetch_array($res); $i++) {
$idc = $mres['id_country'];
$res2 = mysqli_query($dbase, "SELECT count(id_bot) FROM bots_t WHERE (fk_city_bot IN (SELECT id_city FROM city_t, country_t WHERE fk_country_city = id_country AND id_country = " . $idc . ")) AND (status_bot <> 'offline')");
$actb_cnt = -1;
if ((@($res2)) && mysqli_num_rows($res2) > 0) {
$mres2 = mysqli_fetch_array($res2);
$actb_cnt = $mres2[0];
}
$res2 = mysqli_query($dbase, "SELECT count(id_bot) FROM bots_t WHERE fk_city_bot IN (SELECT id_city FROM city_t, country_t WHERE fk_country_city = id_country AND id_country = " . $idc . ")");
$allb_cnt = -1;
if ((@($res2)) && mysqli_num_rows($res2) > 0) {
$mres2 = mysqli_fetch_array($res2);
$allb_cnt = $mres2[0];
Link para o comentário
Compartilhar em outros sites
2 respostass a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.