Hey. I wanted to add these variables like this.
$wins = $row["wins"]; $draws = $row["draws"]; $losses = $row["losses"]; $deadline = $row["deadline"]; $played = $wins + $draws + $losses;
but it doesn't work.. any ideas?
Do like this:
$wins = $row["wins"]+0;
and your variables will become numbers, instead of strings.
J
$wins = $row["wins"]+0; $draws = $row["draws"]+0; $losses = $row["losses"]+0; $deadline = $row["deadline"]+0; $played = $wins + $draws + $losses; ?>
Guess what, it doesn't work!! 🙁
How is the data defined in the database?
colum type, values, etc.
J.
nevermind, i've fixed it now.
for some reason, after i made the changes with the 0's, the file didn't upload
uploaded it again, prob was fixed.
If the problem is solved, please mark the thread resolved (See link at bottom of page).