View Single Post
  #7 (permalink)  
Old Apr 21st, 2008, 20:43
CloudedVision's Avatar
CloudedVision CloudedVision is offline
Nerdy Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 942
Blog Entries: 8
Thanks: 2
Thanked 21 Times in 21 Posts
Send a message via AIM to CloudedVision Send a message via MSN to CloudedVision Send a message via Skype™ to CloudedVision
Re: split xml search into multiple pages?

This is your problem:

PHP: Select all

$properties = array (
                  
'propertyid'   => $propertyid,
                  
'date'         => $date,
                  
'ref'          => $ref,
                  
'price'        => $price,
                  
'pricefreq'    => $price_freq,
                  
'type'         => $type,
                  
'town'         => $town,
                  
'provinceName' => $province,
                  
'location'     => $location_detail,
                  
'beds'         => $beds,
                  
'baths'        => $baths,
                  
'pool'         => $pool,
                  
'description'  => $description,
                  
'images'       => $images
It's just rewriting the $properties variable each time. You want something like this:

PHP: Select all

$properties[$cur_prop] = array (
                  
'propertyid'   => $propertyid,
                  
'date'         => $date,
                  
'ref'          => $ref,
                  
'price'        => $price,
                  
'pricefreq'    => $price_freq,
                  
'type'         => $type,
                  
'town'         => $town,
                  
'provinceName' => $province,
                  
'location'     => $location_detail,
                  
'beds'         => $beds,
                  
'baths'        => $baths,
                  
'pool'         => $pool,
                  
'description'  => $description,
                  
'images'       => $images);

$cur_prop++; 
__________________
echo "Take it easy, ".$CloudedVision;
.links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; }
<quote>&quot;I think it's wrong that only one company makes the game Monopoly&quot; - <name>Steven Wright</name></quote>
Reply With Quote