[eluser]Wayne Smallman[/eluser]
[quote author="progr@mmer" date="1295074952"]I just tested your code and it worked fine.
What is the error exactly that shows on the screen?
Are you redefining $array_options in your model.
you have .....above the switch. Anything in there.[/quote]
Hi and thanks for the reply!
Here's the error code in full:
Code:
A PHP Error was encountered
Severity: Notice
Message: Undefined index: options
Filename: models/data_relationships.php
Line Number: 108
Line 108 is where the switch function is being called.
I've added an echo right up before the switch function and the value is perfecrtly valid and exactly what it should be.
Also, this error appears several times, as it's a query that's being called several times (I'll need to optimize the query at some point, but that's not important right now).
[quote author="Cristian Gilè" date="1295071090"]I can't see any error. Could you post more code?
Cristian Gilè[/quote]
Hi Cristian, and thanks for the reply!
There's nothing else I can provide that would be of any use; the code I provided is the exact point of failure.
As I explained above, there's nothing inhibiting or changing the value of the variable.
I think I'm going to swap out the switch function for an if statement, which includes an isset function, to quell the error messages.