No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
<?php $variable=$_POST['module']; $xmldoc = new DOMDocument(); $xmldoc->load('info.xml'); $xpathvar = new Domxpath($xmldoc); $queryResult = $xpathvar->query("testcase[substring-after( substring-after(script, '/'), '/' ) = '$variable' or substring-before( substring-after( substring-after(script, '/'), '/' ), '/' ) = '$variable']"); foreach($queryResult as $var) { echo $var->textContent; echo "\n"; } ?> I have written this code to fetch those content … |
|
I need some help. I am a newbie to php .. What I am trying to do is to parse an xml file and create a drop-down for the user. I have attached how my drop down list looks currently. What I want to do is to add a sub … |