Location: PHPKode > projects > Mozart > Mozart-0.0.4/getallusers.inc
<?
// called from: every program which presents a screen to the user
// description: retrieves user_id and system_id from USERS
//
$OwnerDataSQL = "SELECT user_id, system_id FROM users ORDER BY system_id";
$OwnerData    = mysql_query($OwnerDataSQL);
$errno = mysql_errno($db);
$error = mysql_error($db);
if ($errno != 0) {
	printf("<center>%s</center>", $error);
}

if ($error_message) {
	printf("<font color=red><center>%s</center></font>", $error_message);
}
?>
Return current item: Mozart