• 0

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


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

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

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

name Punditsdkoslkdosdkoskdo

Setting up a conditional string for an array based UL

So I have this code as part of a larger thing I'm working on but this part is the most important, basically I am trying to create an if statement inside the string in PHP where the statement would check the checkbox "checked" value, and if it was positive to show the rest of the children, in a way it will be a kind of lazy load for the child elements since there will be a very large amount of them being parsed, and it would be way faster to not parse them all at once. I tried to get an ajax function working but I am also very new to trying that, full code can be seen here: https://pastebin.com/JX61h1TZ lines 47-61

Any help would be greatly appreciated!

$str .= '
  • ' . '' . ''; [[IF STATEMENT]] $str.=displayHtmlCategoryTree($children, null, $pathSeparator, $currentPath); } }$str .= '
  • ';

    Here is the jQuery I started to loop into it

    Download script demo [LINK]
    Download script demo [LINK 2] Download script demo [LINK 2]