Hi guys, could someone break out some crayons and help me out. Ok, I'm putting together a dating site using php and myaql from a template and I get this error:
mysql_fetch_array: supplied argument is not a valid MySQL result resource in /home2/morehead/public_html/lib/mysql.lib on line 2
The template mysql.lib file reads:
<?
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){}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;}?>
Also, the url a couple of lines up- what does it link to? Duuhhh, go slooooww.
Thanks, thanks, and thanks.