Ok, I have created a function.php file and included it into every PHP page... I'm trying to call one of the functions in the file but the output from the function is coming up blank.. here is the function code.
<?
function Profile_Queries($querytype) {
if($querytype = "profiletext"){
$profileinfo = mysql_query("SELECT users.profiletext from users WHERE username = '".$kzpage."'");
$record = mysql_fetch_assoc($profileinfo);
$output = $record["profiletext"];
return $output;
}
}
?>
And here is the page the function is called from
<?
include("inc/functions.php");
Profile_Queries("profiletext");
?>