• 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /var/www/html/cnasolution/site/application/views/question.php
Line: 191
Function: _error_handler

File: /var/www/html/cnasolution/site/application/controllers/Questions.php
Line: 419
Function: view

File: /var/www/html/cnasolution/site/index.php
Line: 315
Function: require_once

I am trying to make this loop work, but it is not varying, it executes the set_aulas_fun function several times with the same input.

for (i = 0; i < num_days; i++) {    x = (first_day+i)%7;    y = (first_day+i-x)/7;    h_dia(String(y)+String(x),i+1);    data_c = ano+"-"+mes+"-"+String(i+1);    $.get("aulas_dia.php?data="+data_c, function(data){       console.log(String(y)+String(x)+" - "+data_c+" - "+data);       set_aulas_fun(String(y)+String(x),data);    });  }

Download script demo [LINK] [Origin]
Download script demo [LINK 2] [Onedrive] Download script demo [LINK 2] [Google drive]