Search found 4 matches
- Sat Mar 08, 2008 2:46 pm
- Forum: PHP - Code
- Topic: Compare 2 associative array from xml, php 5
- Replies: 4
- Views: 284
Re: Compare 2 associative array from xml, php 5
Thanks yacahuma I was accessing the object incorrectly, using: $export->DirectoryExhibitorListings[$i]->Phone works the way it should. Also, something of note, when comparing these objects you must first convert them to a string: (string)$export->DirectoryExhibitorListings[$i]->Phone or the comparis...
- Sat Mar 08, 2008 11:23 am
- Forum: PHP - Code
- Topic: Compare 2 associative array from xml, php 5
- Replies: 4
- Views: 284
Re: Compare 2 associative array from xml, php 5
I should have been more specific, apparently late night posting does not work out too well. I need to find the differences between the two arrays Using the simplexml_load_object I get about 1100 objects: array ( 0 => SimpleXMLElement Object ( [Company] => a [Booth] => 12164 [Address] => XXXXXXXX [Lo...
- Sat Mar 08, 2008 12:39 am
- Forum: PHP - Code
- Topic: Compare 2 associative array from xml, php 5
- Replies: 4
- Views: 284
Compare 2 associative array from xml, php 5
I have two arrays that are created from two separate xml files and I need to compare the two. Can anyone suggest a 'best way' of doing this? Both arrays are created from an xml file with the same schema: <root> <Company> <CompanyName></CompanyName> <Phone></Phone> </Company> </root> I need to know i...
- Thu Mar 06, 2008 3:27 pm
- Forum: PHP - Code
- Topic: Table won't update
- Replies: 3
- Views: 313
Re: Table won't update
It does not look like you are telling the script which record to update. i.e. a hidden field in the form that contains the records primary key, and then your script updates the table where id = hidden field value