Warning: mysqli_fetch_array()
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result That query is failing and returning false. Put this after mysqli_query() to see what's going on. $check1_res=mysqli_query($mr_con,"SELECT t1.* FROM <table_nam> t1 where <colom_Name>= '0' ORDER BY t1.id"); if (!$check1_res) { printf("Error: %s\n", mysqli_error($<connection_instance>)); exit(); } For more information: http://www.php.net/manual/en/mysqli.error.php