【发布时间】:2015-11-26 08:45:03
【问题描述】:
美好的一天 我在尝试从数据库中获取数据时遇到了一些错误
这是我的代码
我的表名是会议,我使用正式文档编写代码
controllers.php
public function meetingdet()
{
$mretive = \DB::table('meeting')-> $name = $request->input('meetingname');}
查看
<table border="1" >
<tr>
<td><b>blah</b> </td>
<td><b>blah</b> </td></tr>
<tr>
<td>
</td>
<td><li>foreach ($name as $retrive) {
echo $retrive-> meeting;}
@endforeach
</li>
</td>
</tr>
</table>
但这就是我所看到的
语法错误,意外的 'endforeach' (T_ENDFOREACH) 和我删除 endforeach 它为我显示 for each 而不获取数据
顺便说一句,我正在开发 laravel 5.1
问候
【问题讨论】:
-
您的查询有误。你能指出你的型号吗?
标签: php html mysql laravel-5.1