tengo esta función
Código PHP:
Ver original<?php
$dbhost = "localhost";
$dbname = "panel";
$dbuser = "panel";
$dbpass = "panellenap";
$conn = @mysql_connect($dbhost,$dbuser,$dbpass) or
die ("ERROR! No connection to database!"); $usql = mysql_query("SELECT * FROM usuarios WHERE posicion='1' ORDER BY id_usuario ASC");
print("<xml-user-manager ver=\"1.0\">\n");
if ($line["usuario"] == "") {
$usuario = "";
} else {
$usuario = "name=\"".$line["usuario"]."\" ";
}
if ($line["contrasena"] == "") {
$contrasena = "";
} else {
$contrasena = "password=\"".$line["contrasena"]."\" ";
}
if ($line["profiles"] == "") {
$profiles = "";
} else {
$profiles = "profiles=\"".$line["profiles"]."\" ";
}
if ($line["maxconnections"] == "") {
$maxconnections = "";
} else {
$maxconnections = "max-connections=\"".$line["maxconnections"]."\" ";
}
if ($line["enabled"] == "") {
$enabled = "";
} else {
$enabled = "enabled=\"".$line["enabled"]."\" ";
}
if ($line["mapexclude"] == "") {
$mapexclude = "";
} else {
$mapexclude = "map-exclude=\"".$line["mapexclude"]."\" ";
}
if ($line["debug"] == "") {
$debug = "";
} else {
$debug = "debug=\"".$line["debug"]."\" ";
}
print("<user ".$usuario.$contrasena.$profiles.$maxconnections.$enabled.$mapexclude.$debug."/>\n");
}
print("</xml-user-manager>");
?>
pero no me muestra resultados