此代码
<? php
$randdnumber = rand(1, 1000000);
echo "you won ".$randnumber."points";
?>
给我错误
语法错误,index.php中意外的'$ randdnumber'(T_VARIABLE)
还如何将两个函数的输出一起添加到......
You won [$randdnumber] also you won [$randdnumber2]
有可能吗?
答案 0 :(得分:1)
固定
<?php
$randnumber = rand(1, 1000000);
echo "you won ".$randnumber."points";
?>
答案 1 :(得分:1)
固定代码
<?php
$randdnumber = rand(1, 1000000);
echo "you won ".$randdnumber."points";
?>
修复php标签并更改变量名称
答案 2 :(得分:0)
确切的问题是你的php open标签有空格,你分配和回显的变量名也不同:
请将其删除并更改为
For Each row As DataGridViewRow In myDataGrid.SelectedRows
myDataGrid.Rows.Remove(row)
Next