Jump to content

I need HELP


Lorry

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.