您好,我已经学习了,使用Codeigniter可以有人告诉我,还是给出示例代码?我需要的是Round Id我们111想要给它链接和搜索数据库值111如何做到这一点?这里我试过的代码但仍然不对
<div class="row" id="ajaxdata">
<table border="1">
<tr>
<th>Round Id</th>
<th>Player Id</th>
<th>Bet Place</th>
<th>Total Bet</th>
<th>Win</th>
<th>Lose</th>
</tr>
<?php foreach ($tbl_bet_spot as $data) {?>
<tr>
<td><a href="<?php echo site_url('account/detail_round_id?select=111');?>"><?php echo $data->round_id;?></a>
<td><?php echo $data->id;?></td>
<td><?php echo $data->bet;?></td>
<td><?php echo $data->total_bet;?></td>
<td><?php echo $data->win;?></td>
<td><?php echo $data->lose;?></td>
</tr>
<?php } ?>
</table>
</table>
</div>
Run Code Online (Sandbox Code Playgroud)
调节器
public function detail_round_id(){
$select = $_GET['select'];
$data['tbl_bet_spot'] = $this->login_model->selectRoundId_by_round($select)->result();
print_r ($data);
}
Run Code Online (Sandbox Code Playgroud)
我只是尝试使用我的代码,它现在可以工作,但它在这里是静态的
<td><a href="<?php echo site_url('account/detail_round_id?select=111');?>"><?php echo $data->round_id;?></a> …Run Code Online (Sandbox Code Playgroud)