Hi,

Entering website first time. Script says Admin then admin.

Like so

Admin Id: Admin
Password: admin

But get Error. Wrong Admin Login.

Plus these errors top of page:

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/adven735/public_html/config.php on line 4

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/adven735/public_html/config.php on line 4

Webhost help comment:

If error message 'mysql_fetch_array(): supplied argument is not a valid MySQL result
resource' or similar is displayed on your website, it means there are some issues with
your MySQL query.

Please kindly note this error is not related to hosting service, and it's related to your
script only, so we could not provide any support in this case.

Any ideas?

Thanks,
L-D

looks like you missing 1 parameter syntax should be like this
(mysql_fetch_array($result)) you can also define array_type

MYSQL_ASSOC - Associative array
MYSQL_NUM - Numeric array
MYSQL_BOTH - Default. Both associative and numeric array
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.