Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
18 lines
333 B
PHP
18 lines
333 B
PHP
<?php
|
|
namespace app\index\controller;
|
|
|
|
use app\index\model\User;
|
|
|
|
class Index
|
|
{
|
|
public function index()
|
|
{
|
|
$ids = input('ids/a');
|
|
$t = new User();
|
|
$result = $t->where('id', 'in', $ids)->select();
|
|
foreach($result as $row) {
|
|
echo "<p>Hello, {$row['username']}</p>";
|
|
}
|
|
}
|
|
}
|