don't understand this line of php code...

Line 189: <?php if ($cat_all[$i]->houses == '') echo "0";else echo $cat_all[$i]->houses;?>

Open in new window


I don't get what's happening with the reference "$cat_all[$i]->houses"

I'm using a debugger and when I examine $cat_all array in the local window, I see numerous properties e.g.
$cat_all
  [0]
        [0]->id                52
        [0]->asset_id        0
etc...

But there is NO $cat_all[0]->houses property, so I would expect a warning/notice when line 189 references a non-existent property

But even though there is no houses property, a value is displayed as a result of the echo statement... where the heck is that value coming from?

To try to understand, I changed houses to xhouses:

Line 189: <?php if ($cat_all[$i]->xhouses == '') echo "0";else echo $cat_all[$i]->houses;?>

Open in new window


which results in a Notice "Undefined property: stdClass::$xhouses"

OK... so now I'm REALLY confused...

I sure would appreciate some guru help here... ; )

With Regards-
Sam
SAbboushiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
See if this makes sense...

// THIS ACTION OCCURS ON ON LINE 189
// Line 189: 

// WE START PHP
<?php 

// $cat_all IS AN ARRAY
// $i IS AN INDEX INTO THE ARRAY
// $cat_all[$i] POINTS TO AN OBJECT THAT HAS A PROPERTY NAMED houses
// IF THE VALUE IS AN EMPTY STRING, WRITE '0'
if ($cat_all[$i]->houses == '') echo "0";

// HOWEVER...
else 

// SINCE THE VALUE IS NOT AN EMPTY STRING, WRITE THE VALUE
echo $cat_all[$i]->houses;

// END OF PHP
?>

Open in new window

0
SAbboushiAuthor Commented:
Thanks Ray for taking the time to write that up.

I am clear on the programming logic; where I am confused:

>> // $cat_all[$i] POINTS TO AN OBJECT THAT HAS A PROPERTY NAMED houses
As I said, there is NO $cat_all[0]->houses property [when $i = 0]

Maybe I'm missing something, but if you re-read my post, maybe you can explain the Notice "Undefined property: stdClass::$xhouses"... e.g. why would the error reference stdClass instead of $cat_all object?
0
OmniUnlimitedCommented:
Can you do a var_dump($cat_all); on line 188 and post the results here?  It is obvious to me that $cat_all[$i] is an instantiation of a class somewhere.  Do you know where $cat_all[$i] is being instantiated?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

SAbboushiAuthor Commented:
Thanks OmniUnlimited -

        $database->setQuery($query);
        $cat_all = $database->loadObjectList();

Grrrr.... thanks... your post helped me to recognize that my debugger variables window only shows the first 32 members of an array [0] to [31]...  do you use a php debugger?  Are there any tricks around this other than var_dump?

Market Area # of Houses
 picture for subcategory  Houses in All Market Areas
array (size=3)
  0 => 
    object(stdClass)[999]
      public 'id' => string '52' (length=2)
      public 'asset_id' => null
      public 'houseid' => null
      public 'catid' => null
      public 'sid' => null
      public 'fk_rentid' => null
      public 'description' => null
      public 'link' => null
      public 'listing_type' => null
      public 'price' => null
      public 'priceunit' => null
      public 'htitle' => null
      public 'hcountry' => null
      public 'hregion' => null
      public 'hcity' => null
      public 'hdistrict' => null
      public 'hzipcode' => null
      public 'hlocation' => null
      public 'hlatitude' => null
      public 'hlongitude' => null
      public 'map_zoom' => null
      public 'bathrooms' => null
      public 'bedrooms' => null
      public 'broker' => null
      public 'contacts' => null
      public 'image_link' => null
      public 'listing_status' => null
      public 'price_type' => null
      public 'property_type' => null
      public 'provider_class' => null
      public 'year' => null
      public 'agent' => null
      public 'area' => null
      public 'area_unit' => null
      public 'land_area' => null
      public 'land_area_unit' => null
      public 'expiration_date' => null
      public 'feature' => null
      public 'hoa_dues' => null
      public 'lot_size' => null
      public 'model' => null
      public 'property_taxes' => null
      public 'school' => null
      public 'school_district' => null
      public 'style' => null
      public 'zoning' => null
      public 'checked_out' => null
      public 'checked_out_time' => null
      public 'ordering' => null
      public 'date' => null
      public 'hits' => null
      public 'edok_link' => null
      public 'published' => null
      public 'approved' => null
      public 'owneremail' => null
      public 'featured_clicks' => null
      public 'featured_shows' => null
      public 'extra1' => null
      public 'extra2' => null
      public 'extra3' => null
      public 'extra4' => null
      public 'extra5' => null
      public 'extra6' => null
      public 'extra7' => null
      public 'extra8' => null
      public 'extra9' => null
      public 'extra10' => null
      public 'language' => null
      public 'owner_id' => null
      public 'parent_id' => string '0' (length=1)
      public 'title' => string 'Houses in All Market Areas' (length=26)
      public 'image' => string '' (length=0)
      public 'houses' => string '0' (length=1)
      public 'display' => string '1' (length=1)
  1 => 
    object(stdClass)[998]
      public 'id' => string '51' (length=2)
      public 'asset_id' => string '56' (length=2)
      public 'houseid' => string '4' (length=1)
      public 'catid' => string '0' (length=1)
      public 'sid' => string '0' (length=1)
      public 'fk_rentid' => string '0' (length=1)
      public 'description' => string '' (length=0)
      public 'link' => string '' (length=0)
      public 'listing_type' => string '0' (length=1)
      public 'price' => string '0' (length=1)
      public 'priceunit' => string '$' (length=1)
      public 'htitle' => string '#1 subdv (4/2)' (length=14)
      public 'hcountry' => string '' (length=0)
      public 'hregion' => string '' (length=0)
      public 'hcity' => string 'houston' (length=7)
      public 'hdistrict' => string '' (length=0)
      public 'hzipcode' => string '77062' (length=5)
      public 'hlocation' => string '14322 redbud valley tr' (length=22)
      public 'hlatitude' => string '29.58259' (length=8)
      public 'hlongitude' => string '-95.14741900000001' (length=18)
      public 'map_zoom' => string '14' (length=2)
      public 'bathrooms' => string '0' (length=1)
      public 'bedrooms' => string '0' (length=1)
      public 'broker' => string '' (length=0)
      public 'contacts' => string '' (length=0)
      public 'image_link' => string '' (length=0)
      public 'listing_status' => string '0' (length=1)
      public 'price_type' => string '0' (length=1)
      public 'property_type' => string '0' (length=1)
      public 'provider_class' => string '0' (length=1)
      public 'year' => string '' (length=0)
      public 'agent' => string '' (length=0)
      public 'area' => string '' (length=0)
      public 'area_unit' => string '' (length=0)
      public 'land_area' => string '' (length=0)
      public 'land_area_unit' => string '' (length=0)
      public 'expiration_date' => string '2014-09-24' (length=10)
      public 'feature' => string '' (length=0)
      public 'hoa_dues' => string '' (length=0)
      public 'lot_size' => string '' (length=0)
      public 'model' => string '' (length=0)
      public 'property_taxes' => string '0.00' (length=4)
      public 'school' => string '' (length=0)
      public 'school_district' => string '' (length=0)
      public 'style' => string '0' (length=1)
      public 'zoning' => string '0' (length=1)
      public 'checked_out' => string '0' (length=1)
      public 'checked_out_time' => string '0000-00-00 00:00:00' (length=19)
      public 'ordering' => string '0' (length=1)
      public 'date' => string '2013-09-24 23:13:03' (length=19)
      public 'hits' => string '106' (length=3)
      public 'edok_link' => string '' (length=0)
      public 'published' => string '1' (length=1)
      public 'approved' => string '1' (length=1)
      public 'owneremail' => string 'admin@leasetobuyhouston.com' (length=27)
      public 'featured_clicks' => string '' (length=0)
      public 'featured_shows' => string '' (length=0)
      public 'extra1' => string '' (length=0)
      public 'extra2' => string '' (length=0)
      public 'extra3' => string '' (length=0)
      public 'extra4' => string '' (length=0)
      public 'extra5' => string '' (length=0)
      public 'extra6' => string '0' (length=1)
      public 'extra7' => string '0' (length=1)
      public 'extra8' => string '' (length=0)
      public 'extra9' => string '' (length=0)
      public 'extra10' => string '' (length=0)
      public 'language' => string '*' (length=1)
      public 'owner_id' => string '391' (length=3)
      public 'parent_id' => string '0' (length=1)
      public 'title' => string 'Pasadena Area' (length=13)
      public 'image' => string '' (length=0)
      public 'houses' => string '1' (length=1)
      public 'display' => string '1' (length=1)
  2 => 
    object(stdClass)[997]
      public 'id' => string '47' (length=2)
      public 'asset_id' => string '49' (length=2)
      public 'houseid' => string '9' (length=1)
      public 'catid' => string '0' (length=1)
      public 'sid' => string '0' (length=1)
      public 'fk_rentid' => string '0' (length=1)
      public 'description' => string '<p><strong>First floor has been updated, nice home for first time home buyers looking for an easy fixer-upper. Good size back yard, needs some TLC! Great location, CCISD!</strong></p>' (length=183)
      public 'link' => string '' (length=0)
      public 'listing_type' => string '1' (length=1)
      public 'price' => string '103500' (length=6)
      public 'priceunit' => string '$' (length=1)
      public 'htitle' => string '#1 Seabrook (4/2)' (length=17)
      public 'hcountry' => string '' (length=0)
      public 'hregion' => string '' (length=0)
      public 'hcity' => string 'Seabrook' (length=8)
      public 'hdistrict' => string '' (length=0)
      public 'hzipcode' => string '77586' (length=5)
      public 'hlocation' => string '1218 FLAMINGO DR' (length=16)
      public 'hlatitude' => string '29.582685' (length=9)
      public 'hlongitude' => string '-95.01042089999999' (length=18)
      public 'map_zoom' => string '14' (length=2)
      public 'bathrooms' => string '2' (length=1)
      public 'bedrooms' => string '4' (length=1)
      public 'broker' => string '' (length=0)
      public 'contacts' => string '' (length=0)
      public 'image_link' => string '598E5545-6C53-E4B6-2234-B4859720173D_hr3212169-1.jpg' (length=52)
      public 'listing_status' => string '0' (length=1)
      public 'price_type' => string '0' (length=1)
      public 'property_type' => string '10' (length=2)
      public 'provider_class' => string '0' (length=1)
      public 'year' => string '1966' (length=4)
      public 'agent' => string '' (length=0)
      public 'area' => string '' (length=0)
      public 'area_unit' => string '' (length=0)
      public 'land_area' => string '' (length=0)
      public 'land_area_unit' => string '' (length=0)
      public 'expiration_date' => string '2014-09-05' (length=10)
      public 'feature' => string '' (length=0)
      public 'hoa_dues' => string '28' (length=2)
      public 'lot_size' => string '' (length=0)
      public 'model' => string '' (length=0)
      public 'property_taxes' => string '9.99' (length=4)
      public 'school' => string '' (length=0)
      public 'school_district' => string 'CCISD' (length=5)
      public 'style' => string '0' (length=1)
      public 'zoning' => string '0' (length=1)
      public 'checked_out' => string '0' (length=1)
      public 'checked_out_time' => string '0000-00-00 00:00:00' (length=19)
      public 'ordering' => string '0' (length=1)
      public 'date' => string '2013-09-05 22:37:52' (length=19)
      public 'hits' => string '87' (length=2)
      public 'edok_link' => string '' (length=0)
      public 'published' => string '1' (length=1)
      public 'approved' => string '1' (length=1)
      public 'owneremail' => string 'admin@leasetobuyhouston.com' (length=27)
      public 'featured_clicks' => string '' (length=0)
      public 'featured_shows' => string '' (length=0)
      public 'extra1' => string 'custom 1' (length=8)
      public 'extra2' => string 'custom 2' (length=8)
      public 'extra3' => string '' (length=0)
      public 'extra4' => string '' (length=0)
      public 'extra5' => string '' (length=0)
      public 'extra6' => string '1' (length=1)
      public 'extra7' => string '2' (length=1)
      public 'extra8' => string '' (length=0)
      public 'extra9' => string '' (length=0)
      public 'extra10' => string '' (length=0)
      public 'language' => string '*' (length=1)
      public 'owner_id' => string '391' (length=3)
      public 'parent_id' => string '0' (length=1)
      public 'title' => string 'Clear Lake Area' (length=15)
      public 'image' => string '' (length=0)
      public 'houses' => string '2' (length=1)
      public 'display' => string '1' (length=1)
0
 picture for subcategory  Pasadena Area
array (size=3)
  0 => 
    object(stdClass)[999]
      public 'id' => string '52' (length=2)
      public 'asset_id' => null
      public 'houseid' => null
      public 'catid' => null
      public 'sid' => null
      public 'fk_rentid' => null
      public 'description' => null
      public 'link' => null
      public 'listing_type' => null
      public 'price' => null
      public 'priceunit' => null
      public 'htitle' => null
      public 'hcountry' => null
      public 'hregion' => null
      public 'hcity' => null
      public 'hdistrict' => null
      public 'hzipcode' => null
      public 'hlocation' => null
      public 'hlatitude' => null
      public 'hlongitude' => null
      public 'map_zoom' => null
      public 'bathrooms' => null
      public 'bedrooms' => null
      public 'broker' => null
      public 'contacts' => null
      public 'image_link' => null
      public 'listing_status' => null
      public 'price_type' => null
      public 'property_type' => null
      public 'provider_class' => null
      public 'year' => null
      public 'agent' => null
      public 'area' => null
      public 'area_unit' => null
      public 'land_area' => null
      public 'land_area_unit' => null
      public 'expiration_date' => null
      public 'feature' => null
      public 'hoa_dues' => null
      public 'lot_size' => null
      public 'model' => null
      public 'property_taxes' => null
      public 'school' => null
      public 'school_district' => null
      public 'style' => null
      public 'zoning' => null
      public 'checked_out' => null
      public 'checked_out_time' => null
      public 'ordering' => null
      public 'date' => null
      public 'hits' => null
      public 'edok_link' => null
      public 'published' => null
      public 'approved' => null
      public 'owneremail' => null
      public 'featured_clicks' => null
      public 'featured_shows' => null
      public 'extra1' => null
      public 'extra2' => null
      public 'extra3' => null
      public 'extra4' => null
      public 'extra5' => null
      public 'extra6' => null
      public 'extra7' => null
      public 'extra8' => null
      public 'extra9' => null
      public 'extra10' => null
      public 'language' => null
      public 'owner_id' => null
      public 'parent_id' => string '0' (length=1)
      public 'title' => string 'Houses in All Market Areas' (length=26)
      public 'image' => string '' (length=0)
      public 'houses' => string '0' (length=1)
      public 'display' => string '1' (length=1)
  1 => 
    object(stdClass)[998]
      public 'id' => string '51' (length=2)
      public 'asset_id' => string '56' (length=2)
      public 'houseid' => string '4' (length=1)
      public 'catid' => string '0' (length=1)
      public 'sid' => string '0' (length=1)
      public 'fk_rentid' => string '0' (length=1)
      public 'description' => string '' (length=0)
      public 'link' => string '' (length=0)
      public 'listing_type' => string '0' (length=1)
      public 'price' => string '0' (length=1)
      public 'priceunit' => string '$' (length=1)
      public 'htitle' => string '#1 subdv (4/2)' (length=14)
      public 'hcountry' => string '' (length=0)
      public 'hregion' => string '' (length=0)
      public 'hcity' => string 'houston' (length=7)
      public 'hdistrict' => string '' (length=0)
      public 'hzipcode' => string '77062' (length=5)
      public 'hlocation' => string '14322 redbud valley tr' (length=22)
      public 'hlatitude' => string '29.58259' (length=8)
      public 'hlongitude' => string '-95.14741900000001' (length=18)
      public 'map_zoom' => string '14' (length=2)
      public 'bathrooms' => string '0' (length=1)
      public 'bedrooms' => string '0' (length=1)
      public 'broker' => string '' (length=0)
      public 'contacts' => string '' (length=0)
      public 'image_link' => string '' (length=0)
      public 'listing_status' => string '0' (length=1)
      public 'price_type' => string '0' (length=1)
      public 'property_type' => string '0' (length=1)
      public 'provider_class' => string '0' (length=1)
      public 'year' => string '' (length=0)
      public 'agent' => string '' (length=0)
      public 'area' => string '' (length=0)
      public 'area_unit' => string '' (length=0)
      public 'land_area' => string '' (length=0)
      public 'land_area_unit' => string '' (length=0)
      public 'expiration_date' => string '2014-09-24' (length=10)
      public 'feature' => string '' (length=0)
      public 'hoa_dues' => string '' (length=0)
      public 'lot_size' => string '' (length=0)
      public 'model' => string '' (length=0)
      public 'property_taxes' => string '0.00' (length=4)
      public 'school' => string '' (length=0)
      public 'school_district' => string '' (length=0)
      public 'style' => string '0' (length=1)
      public 'zoning' => string '0' (length=1)
      public 'checked_out' => string '0' (length=1)
      public 'checked_out_time' => string '0000-00-00 00:00:00' (length=19)
      public 'ordering' => string '0' (length=1)
      public 'date' => string '2013-09-24 23:13:03' (length=19)
      public 'hits' => string '106' (length=3)
      public 'edok_link' => string '' (length=0)
      public 'published' => string '1' (length=1)
      public 'approved' => string '1' (length=1)
      public 'owneremail' => string 'admin@leasetobuyhouston.com' (length=27)
      public 'featured_clicks' => string '' (length=0)
      public 'featured_shows' => string '' (length=0)
      public 'extra1' => string '' (length=0)
      public 'extra2' => string '' (length=0)
      public 'extra3' => string '' (length=0)
      public 'extra4' => string '' (length=0)
      public 'extra5' => string '' (length=0)
      public 'extra6' => string '0' (length=1)
      public 'extra7' => string '0' (length=1)
      public 'extra8' => string '' (length=0)
      public 'extra9' => string '' (length=0)
      public 'extra10' => string '' (length=0)
      public 'language' => string '*' (length=1)
      public 'owner_id' => string '391' (length=3)
      public 'parent_id' => string '0' (length=1)
      public 'title' => string 'Pasadena Area' (length=13)
      public 'image' => string '' (length=0)
      public 'houses' => string '1' (length=1)
      public 'display' => string '1' (length=1)
  2 => 
    object(stdClass)[997]
      public 'id' => string '47' (length=2)
      public 'asset_id' => string '49' (length=2)
      public 'houseid' => string '9' (length=1)
      public 'catid' => string '0' (length=1)
      public 'sid' => string '0' (length=1)
      public 'fk_rentid' => string '0' (length=1)
      public 'description' => string '<p><strong>First floor has been updated, nice home for first time home buyers looking for an easy fixer-upper. Good size back yard, needs some TLC! Great location, CCISD!</strong></p>' (length=183)
      public 'link' => string '' (length=0)
      public 'listing_type' => string '1' (length=1)
      public 'price' => string '103500' (length=6)
      public 'priceunit' => string '$' (length=1)
      public 'htitle' => string '#1 Seabrook (4/2)' (length=17)
      public 'hcountry' => string '' (length=0)
      public 'hregion' => string '' (length=0)
      public 'hcity' => string 'Seabrook' (length=8)
      public 'hdistrict' => string '' (length=0)
      public 'hzipcode' => string '77586' (length=5)
      public 'hlocation' => string '1218 FLAMINGO DR' (length=16)
      public 'hlatitude' => string '29.582685' (length=9)
      public 'hlongitude' => string '-95.01042089999999' (length=18)
      public 'map_zoom' => string '14' (length=2)
      public 'bathrooms' => string '2' (length=1)
      public 'bedrooms' => string '4' (length=1)
      public 'broker' => string '' (length=0)
      public 'contacts' => string '' (length=0)
      public 'image_link' => string '598E5545-6C53-E4B6-2234-B4859720173D_hr3212169-1.jpg' (length=52)
      public 'listing_status' => string '0' (length=1)
      public 'price_type' => string '0' (length=1)
      public 'property_type' => string '10' (length=2)
      public 'provider_class' => string '0' (length=1)
      public 'year' => string '1966' (length=4)
      public 'agent' => string '' (length=0)
      public 'area' => string '' (length=0)
      public 'area_unit' => string '' (length=0)
      public 'land_area' => string '' (length=0)
      public 'land_area_unit' => string '' (length=0)
      public 'expiration_date' => string '2014-09-05' (length=10)
      public 'feature' => string '' (length=0)
      public 'hoa_dues' => string '28' (length=2)
      public 'lot_size' => string '' (length=0)
      public 'model' => string '' (length=0)
      public 'property_taxes' => string '9.99' (length=4)
      public 'school' => string '' (length=0)
      public 'school_district' => string 'CCISD' (length=5)
      public 'style' => string '0' (length=1)
      public 'zoning' => string '0' (length=1)
      public 'checked_out' => string '0' (length=1)
      public 'checked_out_time' => string '0000-00-00 00:00:00' (length=19)
      public 'ordering' => string '0' (length=1)
      public 'date' => string '2013-09-05 22:37:52' (length=19)
      public 'hits' => string '87' (length=2)
      public 'edok_link' => string '' (length=0)
      public 'published' => string '1' (length=1)
      public 'approved' => string '1' (length=1)
      public 'owneremail' => string 'admin@leasetobuyhouston.com' (length=27)
      public 'featured_clicks' => string '' (length=0)
      public 'featured_shows' => string '' (length=0)
      public 'extra1' => string 'custom 1' (length=8)
      public 'extra2' => string 'custom 2' (length=8)
      public 'extra3' => string '' (length=0)
      public 'extra4' => string '' (length=0)
      public 'extra5' => string '' (length=0)
      public 'extra6' => string '1' (length=1)
      public 'extra7' => string '2' (length=1)
      public 'extra8' => string '' (length=0)
      public 'extra9' => string '' (length=0)
      public 'extra10' => string '' (length=0)
      public 'language' => string '*' (length=1)
      public 'owner_id' => string '391' (length=3)
      public 'parent_id' => string '0' (length=1)
      public 'title' => string 'Clear Lake Area' (length=15)
      public 'image' => string '' (length=0)
      public 'houses' => string '2' (length=1)
      public 'display' => string '1' (length=1)
1
 picture for subcategory  Clear Lake Area
array (size=3)
  0 => 
    object(stdClass)[999]
      public 'id' => string '52' (length=2)
      public 'asset_id' => null
      public 'houseid' => null
      public 'catid' => null
      public 'sid' => null
      public 'fk_rentid' => null
      public 'description' => null
      public 'link' => null
      public 'listing_type' => null
      public 'price' => null
      public 'priceunit' => null
      public 'htitle' => null
      public 'hcountry' => null
      public 'hregion' => null
      public 'hcity' => null
      public 'hdistrict' => null
      public 'hzipcode' => null
      public 'hlocation' => null
      public 'hlatitude' => null
      public 'hlongitude' => null
      public 'map_zoom' => null
      public 'bathrooms' => null
      public 'bedrooms' => null
      public 'broker' => null
      public 'contacts' => null
      public 'image_link' => null
      public 'listing_status' => null
      public 'price_type' => null
      public 'property_type' => null
      public 'provider_class' => null
      public 'year' => null
      public 'agent' => null
      public 'area' => null
      public 'area_unit' => null
      public 'land_area' => null
      public 'land_area_unit' => null
      public 'expiration_date' => null
      public 'feature' => null
      public 'hoa_dues' => null
      public 'lot_size' => null
      public 'model' => null
      public 'property_taxes' => null
      public 'school' => null
      public 'school_district' => null
      public 'style' => null
      public 'zoning' => null
      public 'checked_out' => null
      public 'checked_out_time' => null
      public 'ordering' => null
      public 'date' => null
      public 'hits' => null
      public 'edok_link' => null
      public 'published' => null
      public 'approved' => null
      public 'owneremail' => null
      public 'featured_clicks' => null
      public 'featured_shows' => null
      public 'extra1' => null
      public 'extra2' => null
      public 'extra3' => null
      public 'extra4' => null
      public 'extra5' => null
      public 'extra6' => null
      public 'extra7' => null
      public 'extra8' => null
      public 'extra9' => null
      public 'extra10' => null
      public 'language' => null
      public 'owner_id' => null
      public 'parent_id' => string '0' (length=1)
      public 'title' => string 'Houses in All Market Areas' (length=26)
      public 'image' => string '' (length=0)
      public 'houses' => string '0' (length=1)
      public 'display' => string '1' (length=1)
  1 => 
    object(stdClass)[998]
      public 'id' => string '51' (length=2)
      public 'asset_id' => string '56' (length=2)
      public 'houseid' => string '4' (length=1)
      public 'catid' => string '0' (length=1)
      public 'sid' => string '0' (length=1)
      public 'fk_rentid' => string '0' (length=1)
      public 'description' => string '' (length=0)
      public 'link' => string '' (length=0)
      public 'listing_type' => string '0' (length=1)
      public 'price' => string '0' (length=1)
      public 'priceunit' => string '$' (length=1)
      public 'htitle' => string '#1 subdv (4/2)' (length=14)
      public 'hcountry' => string '' (length=0)
      public 'hregion' => string '' (length=0)
      public 'hcity' => string 'houston' (length=7)
      public 'hdistrict' => string '' (length=0)
      public 'hzipcode' => string '77062' (length=5)
      public 'hlocation' => string '14322 redbud valley tr' (length=22)
      public 'hlatitude' => string '29.58259' (length=8)
      public 'hlongitude' => string '-95.14741900000001' (length=18)
      public 'map_zoom' => string '14' (length=2)
      public 'bathrooms' => string '0' (length=1)
      public 'bedrooms' => string '0' (length=1)
      public 'broker' => string '' (length=0)
      public 'contacts' => string '' (length=0)
      public 'image_link' => string '' (length=0)
      public 'listing_status' => string '0' (length=1)
      public 'price_type' => string '0' (length=1)
      public 'property_type' => string '0' (length=1)
      public 'provider_class' => string '0' (length=1)
      public 'year' => string '' (length=0)
      public 'agent' => string '' (length=0)
      public 'area' => string '' (length=0)
      public 'area_unit' => string '' (length=0)
      public 'land_area' => string '' (length=0)
      public 'land_area_unit' => string '' (length=0)
      public 'expiration_date' => string '2014-09-24' (length=10)
      public 'feature' => string '' (length=0)
      public 'hoa_dues' => string '' (length=0)
      public 'lot_size' => string '' (length=0)
      public 'model' => string '' (length=0)
      public 'property_taxes' => string '0.00' (length=4)
      public 'school' => string '' (length=0)
      public 'school_district' => string '' (length=0)
      public 'style' => string '0' (length=1)
      public 'zoning' => string '0' (length=1)
      public 'checked_out' => string '0' (length=1)
      public 'checked_out_time' => string '0000-00-00 00:00:00' (length=19)
      public 'ordering' => string '0' (length=1)
      public 'date' => string '2013-09-24 23:13:03' (length=19)
      public 'hits' => string '106' (length=3)
      public 'edok_link' => string '' (length=0)
      public 'published' => string '1' (length=1)
      public 'approved' => string '1' (length=1)
      public 'owneremail' => string 'admin@leasetobuyhouston.com' (length=27)
      public 'featured_clicks' => string '' (length=0)
      public 'featured_shows' => string '' (length=0)
      public 'extra1' => string '' (length=0)
      public 'extra2' => string '' (length=0)
      public 'extra3' => string '' (length=0)
      public 'extra4' => string '' (length=0)
      public 'extra5' => string '' (length=0)
      public 'extra6' => string '0' (length=1)
      public 'extra7' => string '0' (length=1)
      public 'extra8' => string '' (length=0)
      public 'extra9' => string '' (length=0)
      public 'extra10' => string '' (length=0)
      public 'language' => string '*' (length=1)
      public 'owner_id' => string '391' (length=3)
      public 'parent_id' => string '0' (length=1)
      public 'title' => string 'Pasadena Area' (length=13)
      public 'image' => string '' (length=0)
      public 'houses' => string '1' (length=1)
      public 'display' => string '1' (length=1)
  2 => 
    object(stdClass)[997]
      public 'id' => string '47' (length=2)
      public 'asset_id' => string '49' (length=2)
      public 'houseid' => string '9' (length=1)
      public 'catid' => string '0' (length=1)
      public 'sid' => string '0' (length=1)
      public 'fk_rentid' => string '0' (length=1)
      public 'description' => string '<p><strong>First floor has been updated, nice home for first time home buyers looking for an easy fixer-upper. Good size back yard, needs some TLC! Great location, CCISD!</strong></p>' (length=183)
      public 'link' => string '' (length=0)
      public 'listing_type' => string '1' (length=1)
      public 'price' => string '103500' (length=6)
      public 'priceunit' => string '$' (length=1)
      public 'htitle' => string '#1 Seabrook (4/2)' (length=17)
      public 'hcountry' => string '' (length=0)
      public 'hregion' => string '' (length=0)
      public 'hcity' => string 'Seabrook' (length=8)
      public 'hdistrict' => string '' (length=0)
      public 'hzipcode' => string '77586' (length=5)
      public 'hlocation' => string '1218 FLAMINGO DR' (length=16)
      public 'hlatitude' => string '29.582685' (length=9)
      public 'hlongitude' => string '-95.01042089999999' (length=18)
      public 'map_zoom' => string '14' (length=2)
      public 'bathrooms' => string '2' (length=1)
      public 'bedrooms' => string '4' (length=1)
      public 'broker' => string '' (length=0)
      public 'contacts' => string '' (length=0)
      public 'image_link' => string '598E5545-6C53-E4B6-2234-B4859720173D_hr3212169-1.jpg' (length=52)
      public 'listing_status' => string '0' (length=1)
      public 'price_type' => string '0' (length=1)
      public 'property_type' => string '10' (length=2)
      public 'provider_class' => string '0' (length=1)
      public 'year' => string '1966' (length=4)
      public 'agent' => string '' (length=0)
      public 'area' => string '' (length=0)
      public 'area_unit' => string '' (length=0)
      public 'land_area' => string '' (length=0)
      public 'land_area_unit' => string '' (length=0)
      public 'expiration_date' => string '2014-09-05' (length=10)
      public 'feature' => string '' (length=0)
      public 'hoa_dues' => string '28' (length=2)
      public 'lot_size' => string '' (length=0)
      public 'model' => string '' (length=0)
      public 'property_taxes' => string '9.99' (length=4)
      public 'school' => string '' (length=0)
      public 'school_district' => string 'CCISD' (length=5)
      public 'style' => string '0' (length=1)
      public 'zoning' => string '0' (length=1)
      public 'checked_out' => string '0' (length=1)
      public 'checked_out_time' => string '0000-00-00 00:00:00' (length=19)
      public 'ordering' => string '0' (length=1)
      public 'date' => string '2013-09-05 22:37:52' (length=19)
      public 'hits' => string '87' (length=2)
      public 'edok_link' => string '' (length=0)
      public 'published' => string '1' (length=1)
      public 'approved' => string '1' (length=1)
      public 'owneremail' => string 'admin@leasetobuyhouston.com' (length=27)
      public 'featured_clicks' => string '' (length=0)
      public 'featured_shows' => string '' (length=0)
      public 'extra1' => string 'custom 1' (length=8)
      public 'extra2' => string 'custom 2' (length=8)
      public 'extra3' => string '' (length=0)
      public 'extra4' => string '' (length=0)
      public 'extra5' => string '' (length=0)
      public 'extra6' => string '1' (length=1)
      public 'extra7' => string '2' (length=1)
      public 'extra8' => string '' (length=0)
      public 'extra9' => string '' (length=0)
      public 'extra10' => string '' (length=0)
      public 'language' => string '*' (length=1)
      public 'owner_id' => string '391' (length=3)
      public 'parent_id' => string '0' (length=1)
      public 'title' => string 'Clear Lake Area' (length=15)
      public 'image' => string '' (length=0)
      public 'houses' => string '2' (length=1)
      public 'display' => string '1' (length=1)
2

Open in new window

0
OmniUnlimitedCommented:
I'm glad I was able to get you going in the right direction.  Truth be known, I guess I've been pretty lucky.  I've never had need for php debugger.  I understand Zend has a good one http://www.zend.com/en/products/studio/downloads you are welcome to try out if you like.

It looks like you are working with MLS.  That is always fun.  I've done a lot of those.  I wish you luck with your project!
0
Ray PaseurCommented:
... why would the error reference stdClass?
Because the object is an instance of the built-in PHP "empty class."
http://php.net/manual/en/reserved.classes.php

The $cat_all variable is probably a result from fetching query output.

FWIW, var_dump() is not a "trick" but it's the developer's best friend, especially when you're working with something as detailed and complex as MLS data!
0
SAbboushiAuthor Commented:
k thanks folks - appreciate your help.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.