Notice: Undefined index:

3 posts by 3 authors in: Forums > CMS Builder
Last Post: July 17, 2008   (RSS)

Re: [sagentic] Notice: Undefined index:

By Donna - July 16, 2008

Hi there!

When you're pulling in information from two different tables, you need to have the "top of the page" code just above each "section" of code. So, instead of having both bits of code at the top, you'll need it to be ...

[top code for residential]

[residential display code]

[top code for commercial]

[commercial display code]

Basically, any time you're referring to a different table, you need to stick that "top code" in right before it, or the page doesn't know which table to pull the details from. :)

Give that a try and let me know how it works for you. :)
Donna

--
support@interactivetools.com

Re: [sagentic] Notice: Undefined index:

By Dave - July 17, 2008

Hi sagentic,

Any time you get 'undefined index' it means you're trying to use a field that isn't defined. A neat trick for seeing all the fields available in a variable is this little snippet of code:

<xmp><?php print_r($record) ?></xmp>

In this case, though, both of your viewers have 'loadUploads' turned off so they're no defining the upload fields. Try removing this line from both:

'loadUploads' => '0',

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com