当我运行这个时,我总是得到:(什么是wdl形式).
copy ("templates/colors/win.txt", "tips/$today/color.txt");
copy ("templates/text/win.txt", "tips/$today/wdl.txt");
Run Code Online (Sandbox Code Playgroud)
这意味着最后的命令,我的PHP代码上的if不起作用.代码:
<?php
echo ("Setting up colors...");
if($_GET["wdl"] == "D");
{
copy ("templates/colors/dr.txt", "tips/$today/color.txt");
copy ("templates/text/dr.txt", "tips/$today/wdl.txt");
}
if($_GET["wdl"] == "L");
{
copy ("templates/colors/lose.txt", "tips/$today/color.txt");
copy ("templates/text/lose.txt", "tips/$today/wdl.txt");
}
if($_GET["wdl"] == "W");
{
copy ("templates/colors/win.txt", "tips/$today/color.txt");
copy ("templates/text/win.txt", "tips/$today/wdl.txt");
}
?>
Run Code Online (Sandbox Code Playgroud)
我该怎么办呢?
solusion是删除:ex:;fromif($_GET["wdl"] == "W");