Jump to content


Photo

I need HELP


  • Please log in to reply
1 reply to this topic

#1 Lorry

Lorry
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 08 September 2003 - 07:53 PM

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

#2 metalblend

metalblend
  • Members
  • PipPipPip
  • Advanced Member
  • 89 posts
  • LocationCalifornia, USA

Posted 08 September 2003 - 09:42 PM

We discourage double-posting.. http://www.phpfreaks...s/topic7776.php




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users