简体   繁体   中英

load xml file to php dynamic

How can I load xml file to php dynamic

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

noraml code is $xml=simplexml_load_file(12345.xml) or .......

 $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"); 

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM