Hello I am making a highscore webpage with tables. I've gotten two working so far and my last one is giving me trouble. The data is the time played and it is being stored in seconds. This is my query
Stuff I tried
<?php if( isset($this->attr['totaltime'])) { ?>
<td><?php echo $row['totaltime']; ?></td>
<?php } ?>
I've tried a few different variations of this but none has worked for me. I believe it's my lack of knowledge and nothing else. I am 90% i need to add an isset
in there to perform a check but I just dont know how the isset works and all the examples I found are extremely complicated.. Like this one.
$o = [];
@$var = ["",0,null,1,2,3,$foo,$o['myIndex']];
array_walk($var, function($v) {
echo (!isset($v) || $v == false) ? 'true ' : 'false';
echo ' ' . (empty($v) ? 'true' : 'false');
echo "\n";
});