Jump to content

Archived

This topic is now archived and is closed to further replies.

Lorry

I need HELP

Recommended Posts

I\'m getting this warning

 

Warning: Supplied argument is not a valid MySQL result resource in /home/nas06/u/uscratchmyback.co.uk/user/htdocs/lib/mysql.lib on line 29

script below

 

<?

if (!$mysq_lib_loaded)

{

 

function c(){

global $db_host, $db_login, $db_pswd;

$db=mysql_connect($db_host,$db_login,$db_pswd);

return $db;

}

 

function q($q_str){

global $db_name;

$r = mysql($db_name,$q_str);

return $r;

}

 

function d($db){

// mysql_close($db);

}

 

function e($r)

{

if(@mysql_numrows($r))

return 0;

else return 1;

}

 

function f($r){

return mysql_fetch_array($r);

}

function nr($r){

return mysql_num_rows($r);

}

 

$dv=c();

$rv=q(\"select * from sysvars\");

while($va = f($rv)) {${$va[name]}=$va[value];};

d($dv);

 

function piurl($url)

{

if (strstr($url, \"http://\")) $ur=$url; else $ur=$ROOT_HOST.\"pictures/$url\";

return $ur;

};

 

$mysq_lib_loaded=1;

 

}

?>

 

Can any one help

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.