its show the error Warning: mysql_fetch_array()
    <?php
    
    
    $MemberDisplayList = '<table border="0" align="center" cellpadding="6">
                  <tr>  ';
    
    $sql = mysql_query("SELECT id, firstname FROM myMembers WHERE email_activated='1' ORDER BY RAND() LIMIT 9");
    while($row = mysql_fetch_array($sql)){
    	$id = $row["id"];
    	$firstname = $row["firstname"];
        $firstname = substr($firstname, 0, 10);
    	
    	$check_pic = "members/$id/image01.jpg";
    	if (file_exists($check_pic)) {
    	    $user_pic = "<img src=\"members/$id/image01.jpg\" width=\"64px\" border=\"0\" />";
    	} else {
    		$user_pic = "<img src=\"members/0/image01.jpg\" width=\"64px\" border=\"0\" />";
    	}
    	$MemberDisplayList .= '<td><a href="profile.php?id=' . $id . '"><font size="-2">' . $firstname . '</font></a><br />
    	<div style=" height:64px; overflow:hidden;"><a href="profile.php?id=' . $id . '">' . $user_pic . '</a></div></td>';
    
    } 
    
    $MemberDisplayList .= '              </tr>
                </table>  ';
    ?>

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\PhpProject4\homePage_randomMembers.php on line 8


it hase a error on line 8 and error is 

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\PhpProject4\homePage_randomMembers.php on line 8

its show the error Warning: mysql_fetch_array()
===

    <?php
    
    
    $MemberDisplayList = '<table border="0" align="center" cellpadding="6">
                  <tr>  ';
    
    $sql = mysql_query("SELECT id, firstname FROM myMembers WHERE email_activated='1' ORDER BY RAND() LIMIT 9");
    while($row = mysql_fetch_array($sql)){
    	$id = $row["id"];
    	$firstname = $row["firstname"];
        $firstname = substr($firstname, 0, 10);
    	
    	$check_pic = "members/$id/image01.jpg";
    	if (file_exists($check_pic)) {
    	    $user_pic = "<img src=\"members/$id/image01.jpg\" width=\"64px\" border=\"0\" />";
    	} else {
    		$user_pic = "<img src=\"members/0/image01.jpg\" width=\"64px\" border=\"0\" />";
    	}
    	$MemberDisplayList .= '<td><a href="profile.php?id=' . $id . '"><font size="-2">' . $firstname . '</font></a><br />
    	<div style=" height:64px; overflow:hidden;"><a href="profile.php?id=' . $id . '">' . $user_pic . '</a></div></td>';
    
    } 
    
    $MemberDisplayList .= '              </tr>
                </table>  ';
    ?>

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\PhpProject4\homePage_randomMembers.php on line 8


it hase a error on line 8 and error is 

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\PhpProject4\homePage_randomMembers.php on line 8
