The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Count by username
#4
Now I need to select infomation base on login username like count total script:

<pre>
Code:
//Retrieve information for all users
function fetchAllTask() {
    $db = DB::getInstance();
    $query = $db->query("SELECT * FROM task WHERE utilizator = ? ",array($utilizator));
    $results = $query->results();
    return ($results);
}
</pre>

how can I do this in us_helpers.php ?

Here is the form, where all info will go,


<ul class="to_do">

<?php
//Cycle through users
foreach ($TaskData as $v1) {
?>
<a>id?>">
<li class="list-group-item flat ">

<input type="checkbox" class="list-group-item flat " name="update<?=$v1->id?>" value="<?=$v1->id?>" > <font color="<?=$v1->color?>"><i class="fa fa-circle"></i></font> <?=$v1->titlu?><span class="badge"><?=$v1->utilizator?> </span>

</li>
</a>
<?php } ?>
</ul>
  Reply


Messages In This Thread
Count by username - by picassoo - 11-26-2016, 09:59 AM
Count by username - by mudmin - 11-26-2016, 03:01 PM
Count by username - by picassoo - 11-26-2016, 05:15 PM
Count by username - by picassoo - 11-26-2016, 05:29 PM
Count by username - by mudmin - 11-26-2016, 06:41 PM
Count by username - by picassoo - 11-26-2016, 11:24 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)