hola es que tengo este código para print en xml
Código PHP:
Ver original<?php
// Edit this 4 strings to match your system
$host = "localhost";
$user = "panel";
$pass = "panellenap";
$db = "panel";
$conn = @mysql_connect($host,$user,$pass) or
die ("ERROR! No connection to database!"); $sql = mysql_db_query($db,"SELECT * FROM usuarios ORDER BY id_usuario ASC"); echo "<xml-user-manager ver=\"1.0\">\n";
if ($line[2] == "") :
$name = "";
else :
$name = "name=\"".$line[2]."\" ";
endif;
if ($line[3] == "") :
$password = "";
else :
$password = "password=\"".$line[3]."\" ";
endif;
if ($line[6] == "") :
$profiles = "";
else :
$profiles = "profiles=\"".$line[6]."\" ";
endif;
if ($line[7] == "") :
$maxconnections = "";
else :
$maxconnections = "max-connections=\"".$line[7]."\" ";
endif;
if ($line[8] == "") :
$enabled = "";
else :
$enabled = "enabled=\"".$line[8]."\" ";
endif;
if ($line[9] == "false" OR $line[9] == "") :
$mapexclude = "";
else :
$mapexclude = "map-exclude=\"".$line[9]."\" ";
endif;
if ($line[10] == "false" OR $line[10] == "") :
$debug = "";
else :
$debug = "debug=\"".$line[10]."\" ";
endif;
echo "<user ".$name.$password.$profiles.$maxconnections.$enabled.$mapexclude.$debug."/>\n";
}
echo "</xml-user-manager>";
?>
y me tira eror
Deprecated: Function mysql_db_query() is deprecated in C:\xampp\htdocs\panel\genxml\genxml.php on line 10
Deprecated: mysql_db_query() [function.mysql-db-query]: This function is deprecated; use mysql_query() instead in C:\xampp\htdocs\panel\genxml\genxml.php on line 10