Welcome Guest, Not a member yet? Register   Sign In
Simple query not working
#9

[eluser]LuckyFella73[/eluser]
Before setting up your query just replace the wanted parts
of your string comming from your xml file like this:

Code:
<?php
// $country = "<COUNTRYCODE>US</COUNTRYCODE>"; example
$searchfor = array("<COUNTRYCODE>","</COUNTRYCODE>");
$country = str_replace($searchfor, "", $country);

// $region = "<REGIONNAME>GEORGIA</REGIONNAME>"; example
$searchfor = array("<REGIONNAME>","</REGIONNAME>");
$region = str_replace($searchfor, "", $region);

?&gt;

This way you get the "pure" data ..


Messages In This Thread
Simple query not working - by El Forum - 08-16-2010, 08:24 PM
Simple query not working - by El Forum - 08-16-2010, 09:51 PM
Simple query not working - by El Forum - 08-17-2010, 06:10 AM
Simple query not working - by El Forum - 08-17-2010, 08:30 AM
Simple query not working - by El Forum - 08-17-2010, 08:52 AM
Simple query not working - by El Forum - 08-17-2010, 09:22 AM
Simple query not working - by El Forum - 08-17-2010, 09:31 AM
Simple query not working - by El Forum - 08-17-2010, 03:07 PM
Simple query not working - by El Forum - 08-18-2010, 02:01 AM
Simple query not working - by El Forum - 12-06-2010, 04:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB