Dear all,
I have a table to store the identity of my customers. Then I store all the information in XML format.
$xml =
"<Identity>
<ClientID>1234567</ClientID>
<Name>Kelly Jackson</Name>
<Age>18</Age>
<Country>Australia</Country>
</Identity>";
MySQL Table Structure:
| ClientID | XMLValue
| 1234567 | $xml
I want to search all the Clients with age >= 18 in XMLValue field.
What is the best approach for me to do in PHP in this case?
I know that MySQL5.1 introduce new function to search XML documents:
http://dev.mysql.com/tech-resources/articles/mysql-5.1-xml.html
Unfortunately our MySQL server is version 5.0 and does not support this feature 🙁
Appreciate your advice and suggestion.
Thank you!