Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a3332804/public_html/lib/configuration.php on line 22 .
I got error while uploading php in my database
<?
session_start ();
if (!$stop_eval)
{
global $c;
if(is_dir('install/'))
{
header("Location: install/");
}
if(defined('DB_DETAILS') && $c && !$error_log) {
if(!$_SESSION['setting'])
{
$setq = mysql_query("SELECT * FROM settings");
while ($r=mysql_fetch_array ($setq)) - this is the line 22 in my database
{
$set[$r[set_name]] = $r['set_value'];
$_SESSION['setting'][$r[set_name]] = $r['set_value'];