Lorry Posted September 8, 2003 Share Posted September 8, 2003 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 https://forums.phpfreaks.com/topic/997-i-need-help/ Share on other sites More sharing options...
metalblend Posted September 8, 2003 Share Posted September 8, 2003 We discourage double-posting.. http://www.phpfreaks.com/forums/topic7776.php Link to comment https://forums.phpfreaks.com/topic/997-i-need-help/#findComment-3375 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.