Pull only Length with GetObject

14 views
Skip to first unread message

Wurgy

unread,
Dec 8, 2011, 6:06:24 PM12/8/11
to PHRETS
Question, I was wondering if there is a way to only pull the Length
value when you use the GetObjects. So for instance

$photos = $rets->GetObject("Property", "Photo", "12345");

returns all the info but I'd just like to get Length so it cuts down
on the total data that is being pulled.

Jared Ritchey

unread,
Dec 8, 2011, 8:25:01 PM12/8/11
to phr...@googlegroups.com
I use this;

$photos = $rets->GetObject("Property", "Photo", "$data_elements[85]", "*", 1);
        foreach ($photos as $photo)
        {
            $listing = $photo['Content-ID'];
            $number = $photo['Object-ID'];

            if ($photo['Success'] == true)
            {
                $sql="REPLACE INTO armls_images SET
                    id='',
                    listing_id={$listing},
                    photo_url='{$photo['Location']}',
                    img_order={$number}
                ";
                mysql_query($sql) or die(mysql_error());
            }
        }
        unset($data_elements);


--
You received this message because you are subscribed to the Google Groups "PHRETS" group.
To post to this group, send email to phr...@googlegroups.com.
To unsubscribe from this group, send email to phrets+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/phrets?hl=en.


Reply all
Reply to author
Forward
0 new messages