My first post please don't skewer me! j/k However I am only a beginner.
I have what should be a simple percentage formula, but upon running it I get this error:
[text]Parse error: syntax error, unexpected '=' in /math.php on line 6[/text]
This is line 6: $totalTeamH / 15 = $percentageTeamH;
Here is my code:
Code: Select all
//A League Team Percentages
$percentageTeamH = '';
$percentageTeamV = '';
$totalTeamH / 15 = $percentageTeamH;
$totalTeamV / 15 = $percentageTeamV;
echo $teamH . "'s Win/Loss percentage is " . $percentageTeamH . "<br>";
echo $teamV . "'s Win/Loss percentage is " . $percentageTeamV . "<br>";totalTeamH is the home teams total wins out of 15 games played.
totalTeamV is the visiting teams total wins out of 15 games played.
$teamH is the home teams name.
$teamV is the visiting teams name.
Not sure why I get the error, I am sure my syntax is the issue.
rad1964