//dblib.php
function db_fetch_array($query) {
return mysql_fetch_array($query);
}
//config.php
require("e;$CONFIG->libdir/dblib.php"e;);
Having a few other probs with other functions that have been defined but it keeps saying they havent. Should i be using include instead of require maybe??
function db_fetch_array($query) {
return mysql_fetch_array($query);
}
This functions seems incredibly wasteful... all it does is passes it to a pre-defined function... why not just make do with mysql_ftech_array() instead of adding extra code?
You should use either require or include (they just handle slightly differently) but are you actually including the file that contains this function on the page that you're trying to use this function on?