第十行第十一行加入
echo "我的战力是:".$sum;
echo "<br />";
你会发现6到飞起
echo "我的战力是:".$sum;
echo "<br />";
你会发现6到飞起
2017-07-31
<?php
$totalMoney = 0;//总工资
$basicMoney = 2000;//基本工资
$sex = "男";
if($sex == "男"){
$totalMoney = $basicMoney + 2000;// 男的没奖金
}else if($sex == "女"){
$totalMoney = $basicMoney + 300;// 女的有奖金300元
}
echo $totalMoney;
?>
$totalMoney = 0;//总工资
$basicMoney = 2000;//基本工资
$sex = "男";
if($sex == "男"){
$totalMoney = $basicMoney + 2000;// 男的没奖金
}else if($sex == "女"){
$totalMoney = $basicMoney + 300;// 女的有奖金300元
}
echo $totalMoney;
?>
2017-07-31
最新回答 / 慕少4997523
You don't have permission to access /phpmyadmin/ on this server. 解决:?:\wamp\alias\phpmyadmin.conf中 Deny from all Allow from 127.0.0.1 修改为: Allow from all //deny->allow
2017-07-30
You don't have permission to access / on this server.
解决办法:apache配置文件httpd.conf中
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
改为,<Directory />
...
...
Order deny,allow
allow from all
</Directory>
解决办法:apache配置文件httpd.conf中
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
改为,<Directory />
...
...
Order deny,allow
allow from all
</Directory>
2017-07-30
变量输出有两种方式
第一种 echo "字符串".$var
第二种 echo "字符串$var"
第一种 echo "字符串".$var
第二种 echo "字符串$var"
2017-07-30