hi, i'm getting errors when i run php the errors said

"Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in "

these error were talking about the while statements ...where it said "while($row = mysql_fetch_array($data))"

PHP Code:
<form action="" method="get">
    <?php
        
include("db.php");
        
$dbc = new mysqli($mysql_hostname$mysql_user$mysql_password$mysql_database);
        
$query  "SELECT checks,id FROM dragdrop ORDER BY id ASC";
        
$data mysqli_query($dbc$query);
        while(
$row mysql_fetch_array($data))
        {
            
$idstripslashes($row['id']);
            
$checkstripslashes($row['checks']);
            echo 
"<input id='check$id' type='checkbox' onchange='fun($id)' ";
            
            if(
$check==1)
                echo 
"checked='true'>$id<br>";
            else
                echo 
">$id<br>";
            
        }

    
?>

    </form>
What this mean and how can i solve that!

please help thanks.

AM