- 🔴 19:27 Повітряна тривога в Харків.обл.
- #1
Ошибки:
Код:
Где этот фатал эрор, в чём он выражается и как его фиксить ?
PHP:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 11
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 14
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 17
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 20
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 23
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 26
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 29
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 32
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 35
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 38
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 41
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 44
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 47
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 50
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 53
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 56
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 59
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 62
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 65
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 68
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 71
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 74
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 77
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 80
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 83
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 86
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 89
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 92
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 95
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 98
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 101
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 104
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 107
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 110
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 113
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 116
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 119
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 122
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 125
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Z:\home\test1.ru\www\sfb.php on line 128
Код:
PHP:
$res=mysql_query("select price from tb_config where item='ddosmaxhits'");
$res=mysql_fetch_array($res);
$maxhits=$res["price"];
$res=mysql_query("select price from tb_config where item='ddosperiod'");
$res=mysql_fetch_array($res);
$period=$res["price"];
$res=mysql_query("select price from tb_config where item='ddoscrits'");
$res=mysql_fetch_array($res);
$maxcrit=$res["price"];
$res=mysql_query("select price from tb_config where item='click'");
$res=mysql_fetch_array($res);
$click=$res["price"];
$res=mysql_query("select price from tb_config where item='referalclick'");
$res=mysql_fetch_array($res);
$rclick=$res["price"];
$res=mysql_query("select price from tb_config where item='referalclick2'");
$res=mysql_fetch_array($res);
$rclick2=$res["price"];
$res=mysql_query("select price from tb_config where item='hits'");
$res=mysql_fetch_array($res);
$hits=$res["price"];
$res=mysql_query("select price from tb_config where item='recordonline'");
$res=mysql_fetch_array($res);
$recordonline=$res["price"];
$res=mysql_query("select price from tb_config where item='payment'");
$res=mysql_fetch_array($res);
$payment=$res["price"];
$res=mysql_query("select price from tb_config where item='payment' and howmany='1'");
$res=mysql_fetch_array($res);
$minpay=$res["price"];
$res=mysql_query("select price from tb_config where item='advbanner'");
$res=mysql_fetch_array($res);
$advbanner=$res["price"];
$res=mysql_query("select price from tb_config where item='advbanner100'");
$res=mysql_fetch_array($res);
$advbanner100=$res["price"];
$res=mysql_query("select price from tb_config where item='advstatlink'");
$res=mysql_fetch_array($res);
$advstatlink=$res["price"];
$res=mysql_query("select price from tb_config where item='mfabanner'");
$res=mysql_fetch_array($res);
$mfabanner=$res["price"];
$res=mysql_query("select price from tb_config where item='mfastatlink'");
$res=mysql_fetch_array($res);
$mfastatlink=$res["price"];
$res=mysql_query("select price from tb_config where item='mfadyn'");
$res=mysql_fetch_array($res);
$mfadyn=$res["price"];
$res=mysql_query("select price from tb_config where item='hldyn'");
$res=mysql_fetch_array($res);
$hldyn=$res["price"];
$res=mysql_query("select price from tb_config where item='mfahldyn'");
$res=mysql_fetch_array($res);
$mfahldyn=$res["price"];
$res=mysql_query("select price from tb_config where item='adblock'");
$res=mysql_fetch_array($res);
$adblock=$res["price"];
$res=mysql_query("select price from tb_config where item='textads'");
$res=mysql_fetch_array($res);
$textads=$res["price"];
$res=mysql_query("select price from tb_config where item='taskminprice'");
$res=mysql_fetch_array($res);
$taskminprice=$res["price"];
$res=mysql_query("select price from tb_config where item='taskmincount'");
$res=mysql_fetch_array($res);
$taskmincount=$res["price"];
$res=mysql_query("select price from tb_config where item='timer5'");
$res=mysql_fetch_array($res);
$timer5=$res["price"];
$res=mysql_query("select price from tb_config where item='wmframeads'");
$res=mysql_fetch_array($res);
$wmframeads=$res["price"];
$res=mysql_query("select price from tb_config where item='frameads'");
$res=mysql_fetch_array($res);
$frameads=$res["price"];
$res=mysql_query("select price from tb_config where item='chatmess'");
$res=mysql_fetch_array($res);
$chatmess=$res["price"];
$res=mysql_query("select price from tb_config where item='dopsec'");
$res=mysql_fetch_array($res);
$dopsec=$res["price"];
$res=mysql_query("select price from tb_config where item='leftblock'");
$res=mysql_fetch_array($res);
$leftblock=$res["price"];
$res=mysql_query("select price from tb_config where item='vipblock'");
$res=mysql_fetch_array($res);
$vipblock=$res["price"];
$res=mysql_query("select price from tb_config where item='vipcount'");
$res=mysql_fetch_array($res);
$vipcount=$res["price"];
$res=mysql_query("select price from tb_config where item='wmchatads'");
$res=mysql_fetch_array($res);
$wmchatads=$res["price"];
$res=mysql_query("select price from tb_config where item='maxautopay'");
$res=mysql_fetch_array($res);
$maxautopay=$res["price"];
$res=mysql_query("select price from tb_config where item='refmax' and howmany='0'");
$res=mysql_fetch_array($res);
$refmax0=$res["price"];
$res=mysql_query("select price from tb_config where item='refmax' and howmany='1'");
$res=mysql_fetch_array($res);
$refmax1=$res["price"];
$res=mysql_query("select price from tb_config where item='autodeluser'");
$res=mysql_fetch_array($res);
$autodeluser=$res["price"];
$res=mysql_query("select price from tb_config where item='refbirjcomm'");
$res=mysql_fetch_array($res);
$refbirjcomm=$res["price"];
$res=mysql_query("select price from tb_config where item='refbirjminclick'");
$res=mysql_fetch_array($res);
$refbirjminclick=$res["price"];
$res=mysql_query("select price from tb_config where item='captcha'");
$res=mysql_fetch_array($res);
$captcha=$res["price"];
$res=mysql_query("select price from tb_config where item='taskcomm'");
$res=mysql_fetch_array($res);
$taskcomm=$res["price"];
$res=mysql_query("select price from tb_config where item='taskhl'");
$res=mysql_fetch_array($res);
$taskhl=$res["price"];
Где этот фатал эрор, в чём он выражается и как его фиксить ?