hi. i am having a problem with SimpleXML, i was wondering if anybody could help.
this works...
foreach ($xml2->xpath('//appointments[cust_id = "mark"][date = "23-06-2006"]') as $app)
but this does not...
foreach ($xml2->xpath('//appointments[cust_id = "mark"][date = "$f_date2"]') as $app)
even though $f_date is 23-06-2006
this works...
foreach ($xml2->xpath('//appointments[cust_id = "mark"][date = "23-06-2006"]') as $app)
but this does not...
foreach ($xml2->xpath('//appointments[cust_id = "mark"][date = "$f_date2"]') as $app)
even though $f_date is 23-06-2006