login  Naam:   Wachtwoord: 
Registreer je!
 Forum

[php] Valid

Offline stenno - 15/11/2005 07:50
Avatar van stennoPHP interesse
Ik heb zo'n gevoel dat de onderstaande code niet helemaal php valid is:

  1. if ($fort == "4")
  2. {
  3. $ans22 ="In "+ (("5"-$_POST['dw9'])*"750000")/(((($_POST['ta']+$_POST['td']+$_POST['un']+"1")*"28"+($_POST['spy']+$_POST['sen'])*"15")*"48")*$arr[$_POST['race']][3])+" Days to";
  4. $ans24 ="In "+ (("7"-$_POST['dw9'])*"750000")/(((($_POST['ta']+$_POST['td']+$_POST['un']+"1")*"28"+($_POST['spy']+$_POST['sen'])*"15")*"48")*$arr[$_POST['race']][3])+" Days to";
  5. $ans26 ="In "+ (("9"-$_POST['dw9'])*"750000")/(((($_POST['ta']+$_POST['td']+$_POST['un']+"1")*"28"+($_POST['spy']+$_POST['sen'])*"15")*"48")*$arr[$_POST['race']][3])+" Days to";
  6. $ans28 ="In "+ (("11"-$_POST['dw9'])*"750000")/(((($_POST['ta']+$_POST['td']+$_POST['un']+"1")*"28"+($_POST['spy']+$_POST['sen'])*"15")*"48")*$arr[$_POST['race']][3])+" Days to";
  7. $ans30 ="In "+ (("22"-$_POST['dw9'])*"750000")/(((($_POST['ta']+$_POST['td']+$_POST['un']+"1")*"28"+($_POST['spy']+$_POST['sen'])*"15")*"48")*$arr[$_POST['race']][3])+" Days to";
  8. $ans32 ="In "+ (("36"-$_POST['dw9'])*"750000")/(((($_POST['ta']+$_POST['td']+$_POST['un']+"1")*"28"+($_POST['spy']+$_POST['sen'])*"15")*"48")*$arr[$_POST['race']][3])+" Days to";
  9. $ans34 ="In "+ (("64"-$_POST['dw9'])*"750000")/(((($_POST['ta']+$_POST['td']+$_POST['un']+"1")*"28"+($_POST['spy']+$_POST['sen'])*"15")*"48")*$arr[$_POST['race']][3])+" Days to";
  10. $ans36 ="In "+ (("134"-$_POST['dw9'])*"750000")/(((($_POST['ta']+$_POST['td']+$_POST['un']+"1")*"28"+($_POST['spy']+$_POST['sen'])*"15")*"48")*$arr[$_POST['race']][3])+" Days to";
  11. $ans38 ="In "+ (("271"-$_POST['dw9'])*"750000")/(((($_POST['ta']+$_POST['td']+$_POST['un']+"1")*"28"+($_POST['spy']+$_POST['sen'])*"15")*"48")*$arr[$_POST['race']][3])+" Days to";
  12. $ans40 ="In "+ (("561"-$_POST['dw9'])*"750000")/(((($_POST['ta']+$_POST['td']+$_POST['un']+"1")*"28"+($_POST['spy']+$_POST['sen'])*"15")*"48")*$arr[$_POST['race']][3])+" Days to";
  13. $ans42 ="In "+ (("1175"-$_POST['dw9'])*"750000")/(((($_POST['ta']+$_POST['td']+$_POST['un']+"1")*"28"+($_POST['spy']+$_POST['sen'])*"15")*"48")*$arr[$_POST['race']][3])+" Days to";
  14. $ans44 ="In "+ (("2489"-$_POST['dw9'])*"750000")/(((($_POST['ta']+$_POST['td']+$_POST['un']+"1")*"28"+($_POST['spy']+$_POST['sen'])*"15")*"48")*$arr[$_POST['race']][3])+" Days to";
  15. $ans46 ="In "+ (("5263"-$_POST['dw9'])*"750000")/(((($_POST['ta']+$_POST['td']+$_POST['un']+"1")*"28"+($_POST['spy']+$_POST['sen'])*"15")*"48")*$arr[$_POST['race']][3])+" Days to";
  16. $ans48 ="In "+ (("11085"-$_POST['dw9'])*"750000")/(((($_POST['ta']+$_POST['td']+$_POST['un']+"1")*"28"+($_POST['spy']+$_POST['sen'])*"15")*"48")*$arr[$_POST['race']][3])+" Days to";
  17. $ans50 ="In "+ (("23328"-$_POST['dw9'])*"750000")/(((($_POST['ta']+$_POST['td']+$_POST['un']+"1")*"28"+($_POST['spy']+$_POST['sen'])*"15")*"48")*$arr[$_POST['race']][3])+" Days to";
  18. $ans52 ="In "+ (("48960"-$_POST['dw9'])*"750000")/(((($_POST['ta']+$_POST['td']+$_POST['un']+"1")*"28"+($_POST['spy']+$_POST['sen'])*"15")*"48")*$arr[$_POST['race']][3])+" Days to";
  19. }


ik krijg namelijk de volgende error:
Parse error: parse error, unexpected $ in /www/users/lordsofgondor.downfire.com/calculation1.php on line 897 en dat is elke keer een andere lijn en volgens mij is daar niets fout aan.

Kan iemand me helpen door te zeggen wat ik moet veranderen om dit php valid te maken??

0 antwoorden

Gesponsorde links
Er zijn nog geen reacties op dit bericht.
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.205s