我收到错误的for循环和错误名称我把它放在问题标题上请帮帮我...
<p>POSITION
<select name="postion">
<?php
$all_subj = get_all_subjects();
$subj_count = mysql_num_rows($all_subj);
for($count=1; $count < = $subj_count+1; $count++){
echo " <option value='$count'>{$count}</option>" ;
}
?>
</select>
</p>
答案 0 :(得分:2)
只需删除<
和=
之间的空格,如下所示: -
for($count=1; $count <= $subj_count+1; $count++){
答案 1 :(得分:1)
<=
应该在for
循环
<p>POSITION <select name="postion" >
<?php
$all_subj = get_all_subjects();
$subj_count = mysql_num_rows($all_subj);
for($count=1; $count <= $subj_count+1; $count++)
{
echo " <option value='$count'>{$count}</option>" ;
}
?>
</select>
</p>
declare @date Datetime ='',@query nvarchar(max),@parms nvarchar(max);
set @date =getdate();
set @query=N'select * from [3].[Sync_Database_BTS].dbo.[Test]
where [Test] >=cast(date,@date) ; ';
set @parms = N'@date datetime';
exec sp_executesql @query,@parms,@date