marco_van_mayo
05-02-2006, 11:58 AM
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