Skip to content
Advertisement

Codeigniter Having undefined index

I need to access a table by referencing another table ID and by doing so I created first a foreach loop to retrieve the first table data then give its ID reference to the second table. I have done it in my other function but I don’t know in this function prompts me that it’s undefined index. Here is my model:

JavaScript

and here is the controller function:

JavaScript

This is the error that I get:

ERROR – 2016-05-23 09:57:02 –> Severity: Notice –> Undefined index: TimeFrom C:xampphtdocsTMSapplicationcontrollerstms.php 482
ERROR – 2016-05-23 09:57:02 –> Severity: Notice –> Undefined index: LunchOut C:xampphtdocsTMSapplicationcontrollerstms.php 483
ERROR – 2016-05-23 09:57:02 –> Severity: Notice –> Undefined index: LunchIn C:xampphtdocsTMSapplicationcontrollerstms.php 484
ERROR – 2016-05-23 09:57:02 –> Severity: Notice –> Undefined index: TimeTo C:xampphtdocsTMSapplicationcontrollerstms.php 485
ERROR – 2016-05-23 09:58:41 –> Severity: Notice –> Undefined index: TimeFrom C:xampphtdocsTMSapplicationcontrollerstms.php 482
ERROR – 2016-05-23 09:58:41 –> Severity: Notice –> Undefined index: LunchOut C:xampphtdocsTMSapplicationcontrollerstms.php 483
ERROR – 2016-05-23 09:58:41 –> Severity: Notice –> Undefined index: LunchIn C:xampphtdocsTMSapplicationcontrollerstms.php 484
ERROR – 2016-05-23 09:58:41 –> Severity: Notice –> Undefined index: TimeTo C:xampphtdocsTMSapplicationcontrollerstms.php 485

Advertisement

Answer

This solves my problem:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement