-1

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given on line 236

<?php
$select=mysql_query("select * from deptupload order by id desc");


while($row1=mysql_fetch_array($select) ){
    $name=$row1['name'];
    ?>
    <tr>
        <td width="300">
            <a href="download1.php?filename=<?php echo $name;?>"><?php echo $name ;?></a>
        </td>
    </tr> 
<?php }?>

i have one page having two divisions in that one is user file and the other is department file. the upload of user file should be displayed on other page and its displaying but department is not showing which is to be displayed on same page. and getting mysql_fetch_array.

saptesh v
  • 1
  • 1

1 Answers1

0

Use die function for debuging:

$select=mysql_query("select * from deptupload order by id desc") or die(mysql_error());
                                                                 ^^

Note: mysql extension Officially deprecated (as of PHP 5.5. It's likely to be removed in the next major release.)

Manwal
  • 22,994
  • 11
  • 59
  • 91