Notice: Undefined offset: 1 in ['DOCUMENT_ROOT']/CMS/lib/database_functions.php on line 507

3 posts by 2 authors in: Forums > CMS Builder
Last Post: February 25, 2009   (RSS)

Re: [seyrich] Notice: Undefined offset: 1 in ['DOCUMENT_ROOT']/CMS/lib/database_functions.php on line 507

By Dave - February 25, 2009

Hi seyrich,

The version you have requires that 2 columns be returned from a query. The first one being used as the pullldown values and the second one being the label.

So this might work better (untested):
SELECT DISTINCT room_type, room_type FROM cms_gallery

However we just added a feature to 1.27 (just released) so if only one column is specified it will use it's value as both value and label.

Hope that helps (and makes sense!). Let me know if you need anything more on that.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Notice: Undefined offset: 1 in ['DOCUMENT_ROOT']/CMS/lib/database_functions.php on line 507

By (Deleted User) - February 25, 2009

LOL, never wrote a query returning the same data twice but it worked perfectly. I will update today. Thank you!