Error message: Warning: mysql_fetch_array () expectsparameter1toberesource, booleangiveninC: yxwebyjjhBdis_ck.phponline47 the source code of the previous report is not queried: $ sj, $ gq php report database
Error message:
Warning: mysql_fetch_array () expects parameter 1 to be resource, boolean given in C: \ yxweb \ yjjh \ B \ dis_ck.php on line 47
Initial report not queried
Source code:
Date_default_timezone_set ('Asia/Shanghai'); // Asia/Shanghai
$ Sj = date ("Y-m-d"); // Obtain the early stage
// Echo $ sj;
$ Gq = 0;
$ Bb = 0;
If (! Empty ($ _ POST ['SJ ']) {
$ Sj = $ _ POST ['SJ '];
// $ Sj = "$ sj [6]". "$ sj [7]". "$ sj [8]". "$ sj [9]". "-". "$ sj [0]". "$ sj [1]". "-". "$ sj [3]". "$ sj [4]";
}
If (! Empty ($ _ POST ['GQ']) {
$ Gq = $ _ POST ['GQ'];
}
If (! Empty ($ _ POST ['BB ']) {
$ Bb = $ _ POST ['BB'];
}
// Echo"
$ Sj, $ gq ,";
$ SQL = mysql_query ("select * from $ bb where gq = '$ GQ' and sj like' $ sj % 'order by id desc ");
$ Info = mysql_fetch_array ($ SQL );
If ($ info = false ){
// Echo"
$ Array
";
Echo"
Initial report not queried
";
}
Elseif ($ bb = 'yl '){
$ Sqlyl = mysql_query ("select * from yl where gq = '$ GQ' and sj like' $ sj % 'order by id desc limit 1 ");
// Echo $ sqlfzb;
$ Info = mysql_fetch_array ($ sqlyl );
?>