PHP语句格式错误了.mysqli_fetch_array() expects parameter 1 to be mysqli_result
PHP错误提示[22-Sep-201401:30:04PRC]PHPWarning:mysqli_fetch_array()expectsparameter1tobemy...
PHP错误提示
[22-Sep-2014 01:30:04 PRC] PHP Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in D:\InMywww\WWW\Login\WService\Manger.php on line 243
程序是混淆加密后解密的源码,PHP语句格式错误了,不会修复谁帮我修复一下
function ExcuteSql( $_obfuscate_a1, $_obfuscate_a2 )
{
if ( md5( WSkey ) != $_obfuscate_a1 )
{
return array( "msg" => "服务器通信验证失败请联系技术人?" );
}
$_obfuscate_a3 = conn( $_obfuscate_a3 );
$_obfuscate_a4 = mysqli_query( $_obfuscate_a3, $_obfuscate_a2 );
if ( !$_obfuscate_a4 )
{
return array( "msg" => "Mysql query error!" );
}
$_obfuscate_a5 = array( );
//错误提示行243就是下面
while ( !!$_obfuscate_a4 && $_obfuscate_a6 = mysqli_fetch_array( $_obfuscate_a4 ) ) )
{
array_push( &$_obfuscate_a5, $_obfuscate_a6 );
}
return array(
"NumRows" => is_bool( $_obfuscate_a4 ) ? 0 : mysqli_num_rows( $_obfuscate_a4 ),
"AffetedRows" => is_object( $_obfuscate_a4 ) ? mysqli_affected_rows( $_obfuscate_a3 ) : 0,
"Fetch" => $_obfuscate_a5
);
} 展开
[22-Sep-2014 01:30:04 PRC] PHP Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in D:\InMywww\WWW\Login\WService\Manger.php on line 243
程序是混淆加密后解密的源码,PHP语句格式错误了,不会修复谁帮我修复一下
function ExcuteSql( $_obfuscate_a1, $_obfuscate_a2 )
{
if ( md5( WSkey ) != $_obfuscate_a1 )
{
return array( "msg" => "服务器通信验证失败请联系技术人?" );
}
$_obfuscate_a3 = conn( $_obfuscate_a3 );
$_obfuscate_a4 = mysqli_query( $_obfuscate_a3, $_obfuscate_a2 );
if ( !$_obfuscate_a4 )
{
return array( "msg" => "Mysql query error!" );
}
$_obfuscate_a5 = array( );
//错误提示行243就是下面
while ( !!$_obfuscate_a4 && $_obfuscate_a6 = mysqli_fetch_array( $_obfuscate_a4 ) ) )
{
array_push( &$_obfuscate_a5, $_obfuscate_a6 );
}
return array(
"NumRows" => is_bool( $_obfuscate_a4 ) ? 0 : mysqli_num_rows( $_obfuscate_a4 ),
"AffetedRows" => is_object( $_obfuscate_a4 ) ? mysqli_affected_rows( $_obfuscate_a3 ) : 0,
"Fetch" => $_obfuscate_a5
);
} 展开
展开全部
while ( !!$_obfuscate_a4 && $_obfuscate_a6 = mysqli_fetch_array( $_obfuscate_a4 ) ) ),后面是不是多了一个)号,另外,检查一下,应该发现!!$_obfuscate_a4与 $_obfuscate_a6 = mysqli_fetch_array( $_obfuscate_a4 )都会进行检查,即$_obfuscate_a4为false的话,mysqli_fetch_array( $_obfuscate_a4 )语句也会执行,这时就会给出提示,建议将该while语句拆分开来写,写成while(!!$_obfuscate_a4 ) {$_obfuscate_a6 = mysqli_fetch_array( $_obfuscate_a4 );}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询