当前位置:网站首页>Laravel [view]
Laravel [view]
2022-04-23 05:20:00 【klx2545845553】
<body>
<!-- <h2>{
{
$student[0]['xingming']}}</h2> -->
<table border="1" cellpadding="0" cellspacing="2" width="50%" align="center">
<tr>
<th> Number </th>
<th> Student number </th>
<th> full name </th>
<th> major </th>
<th> class </th>
<th> Gender </th>
</tr>
<!-- @for ($i = 0; $i < 100; $i++)
<th>{
{
$i }}</th>
@endfor -->
<?php
$i=0;
?>
@foreach($student as $item)
<tr>
<th>{
{
$i++}}</th>
<th>{
{
$item['xh']}}</th>
<th>{
{
$item['xingming']}}</th>
<th>{
{
$item['zhuanye']}}</th>
<th>{
{
$item['banji']}}</th>
<th>{
{
$item['xingbie']}}</th>
</tr>
@endforeach
</body>
public function index()
{
$student=$this->stu;
return view('hello',compact('student'));
}
版权声明
本文为[klx2545845553]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220547045635.html
边栏推荐
- Routing parameters
- Barcode generation and decoding, QR code generation and decoding
- 2021-09-23
- On distributed lock
- 《2021年IT行业项目管理调查报告》重磅发布!
- Pandas to_ SQL function pit avoidance guide "with correct code to run"
- Blender programmed terrain production
- MySQL views the SQL statement details executed by the optimizer
- Using MySQL with Oracle
- 如何在Word中添加漂亮的代码块 | 很全的方法整理和比较
猜你喜欢
Traversal of tree
好的测试数据管理,到底要怎么做?
Power consumption parameters of Jinbei household mute box series
改进DevSecOps框架的 5 大关键技术
The WebService interface writes and publishes calls to the WebService interface (2)
Master-slave replication of MariaDB database
Three 之 three.js (webgl)简单实现根据点绘制线/弧线(基于LineGeometry / Line2 / LineMaterial,绘制两点基于圆心的弧线段)
mariadb数据库的主从复制
When is it appropriate for automated testing? (bottom)
What are the reasons for the failure of digital transformation?
随机推荐
Graphics. Fromimage reports an error "graphics object cannot be created from an image that has an indexed pixel..."
Using PHP post temporary file mechanism to upload arbitrary files
Minimum spanning tree -- unblocked project hdu1863
JS array common methods
Get the number of days between dates, get the Chinese date, get the date of the next Monday of the date, get the working day, get the rest day
即将毕业的大学生找技术开发工作的焦虑根源
Three 之 three.js (webgl)模型的删除/场景的清空/内存的释放 的简单整理
Using MySQL with Oracle
使用zerotier让异地设备组局域网
JSP -- Introduction to JSP
Solution of how to log in with mobile phone verification code in wireless network
To understand Devops, you must read these ten books!
Golang memory escape
学习笔记:Unity CustomSRP-10-Point and Spot Shadows
Golang select priority execution
Pandas to_ SQL function pit avoidance guide "with correct code to run"
A trinomial expression that causes a null pointer
《2021年IT行业项目管理调查报告》重磅发布!
Mariadb的半同步复制
好的测试数据管理,到底要怎么做?