将xml文件加载到php动态

时间:2016-08-10 13:38:06

标签: javascript php jquery xml

如何将xml文件加载到php dynamic



$viq="VPQ/" echo $Recordset1['vname'] ;
    $xml=simplexml_load_file($viq) or die("Error: Cannot create object");




noraml代码是$ xml = simplexml_load_file(12345.xml)或.......



$colname_Recordset1 = "-1";
if (isset($_GET['id'])) {
  $colname_Recordset1 = $_GET['id'];
}
mysql_select_db($database_noonopic, $noonopic);
$query_Recordset1 = sprintf("SELECT * FROM xmlsheet WHERE id = %s", GetSQLValueString($colname_Recordset1, "int"));
$Recordset1 = mysql_query($query_Recordset1, $noonopic) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);

$viq="VPQ/" echo $Recordset1['vname'] ;
$xml=simplexml_load_file($viq) or die("Error: Cannot create object");




1 个答案:

答案 0 :(得分:0)



$viq='VPQ/'.$row_Recordset1; ;
    $xml=simplexml_load_file($viq) or die("Error: Cannot create object");