I am trying to find out if there is a way to pass a variable $fquote to
xpath ...[qtnum="help"]
$fquote would be derived from a form. Any help may save what is left of my
hair!!
<?php
$s = simplexml_load_file('fishquotes.xml');
$fquote = "245";
$findquote = $s->xpath('/fishingquotes/quote[qtnum="260"]');
....?>
<?xml version="1.0"?>
<fishingquotes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<quote>
<qtnum>101</qtnum>
<title>Small Fish</title>
<copy>Govern a family as you would</copy>
<copy> cook a small fish; </copy>
<copy>very gently.</copy>
<author> Chinese Proverb</author>
<comment>None</comment>
</quote>
<!--and 450 more quotes-->
</fishingquotes>
--
Tony Bishop
www.bishfish.co.nz
New Zealand
--
Tony Bishop
www.bishfish.co.nz
New Zealand