hi everyone.. please my code is having an issue... i made a select query and its displaying the error in the IMAGE attached... the code is also attached... pls what could be the error....

the image ain 't uploading....so below is the error...

( ! ) Warning: mysql_fetch_array() expects parameter 1 to be resource, object given in C:\wamp\www\testpro\admin\categories.php on line 91
Call Stack
#   Time    Memory  Function    Location
1   0.0025  143568  {main}( )   ..\categories.php:0
2   0.0620  153304  mysql_fetch_array ( )   ..\categories.php:91

First, this function is depricated - it may be time to learn about MySQLi or other something more modern in the PHP world.

Second, take a look here:
http://php.net/manual/en/function.mysql-fetch-array.php

You should be passing ($selcat, FLAG), as $selcat is the "resource" it is expecting (i.e, the result of a query).

For more clarity, look at example #2 in the link above.

Good luck!

Ryan

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.