"; mysql_close(); return $x; } else { // echo $x.",".$y; return array($x,$y); } } function db_getconfval ($attribute) { list($db,$conn) = db_connect(); if (empty($db)) { echo "ERROR 0x01, Failed to connect to database!
"; return NULL; } else { $sql = "SELECT value FROM config WHERE attr='". mysql_real_escape_string($attribute)."'"; $result = mysql_query($sql,$conn); $data = mysql_fetch_array ($result); // echo $result; mysql_close(); return $data[0]; } } ?>