Location: PHPKode > projects > Athena Research Assistant > athena-dev-0.1pre-alpha/includes/UID_to_username.inc.php
<?php
function convert_ID($UID){

	$getUSERname = mysql_query("SELECT * FROM ath_users WHERE ath_users_id=$UID");

	if (!$getUSERname){
		echo("<p class=\"red\">getUSERname failed in UID_to_username.php</p>");
		echo(mysql_error());
		exit();
	}

	$ROWgetUSERname = mysql_fetch_array($getUSERname);
	
	return $ROWgetUSERname["ath_users_username"];
}
?>
Return current item: Athena Research Assistant