Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unexpected $end
#1
Hi,
ich bin noch relativ neu auf dem Gebiet PHP und wäre euch mitunter sehr dankbar wenn ihr mir bei meinem kleinen Problem helft.
Ich habe folgendes Problem:

Parse error: parse error, unexpected $end in C:\Dokumente und Einstellungen\mictes\Eigene Dateien\dslan_v1.2\dslan_v1.2\htdocs\include\configs\farm_limits.php on line 1

PHP Code:
<?php if ($config['bh_style']==0) { // S1 Style: $arr_farm = array( "1"=>"250", "2"=>"280", "3"=>"328", "4"=>"384", "5"=>"449", "6"=>"526", "7"=>"615", "8"=>"720", "9"=>"842", "10"=>"986", "11"=>"1153", "12"=>"1349", "13"=>"1579", "14"=>"1847", "15"=>"2161", "16"=>"2529", "17"=>"2959", "18"=>"3462", "19"=>"4050", "20"=>"4739", "21"=>"5545", "22"=>"6488", "23"=>"7591", "24"=>"8881", "25"=>"10391", "26"=>"12157", "27"=>"14224", "28"=>"16642", "29"=>"19472", "30"=>"22782", "31"=>"24642", "32"=>"26642", "33"=>"47000", "34"=>"56000", "35"=>"72000" ); } elseif ($config['bh_style']==1) { // SDS Style: $arr_farm = array( "1"=>"240", "2"=>"281", "3"=>"329", "4"=>"386", "5"=>"452", "6"=>"530", "7"=>"622", "8"=>"729", "9"=>"854", "10"=>"1002", "11"=>"1174", "12"=>"1376", "13"=>"1613", "14"=>"1891", "15"=>"2216", "16"=>"2598", "17"=>"3045", "18"=>"3569", "19"=>"4183", "20"=>"4904", "21"=>"5748", "22"=>"6737", "23"=>"7896", "24"=>"9255", "25"=>"10848", "26"=>"12715", "27"=>"14904", "28"=>"17469", "29"=>"20476", "30"=>"24000", "31"=>"24642", "32"=>"26472", "33"=>"47000", "34"=>"56000", "35"=>"72000" ); } ?>

Ich habe wie ihr sehen könnt die Stufen 34 und 35 hinzugefügt und alles etwas angepasst.
Wo liegt denn jetzt das Problem?
Reply
#2
Versuch mal:
PHP Code:
<?php if ($config['bh_style']==0) { // S1 Style: $arr_farm = array ( "1"=>"250", "2"=>"280", "3"=>"328", "4"=>"384", "5"=>"449", "6"=>"526", "7"=>"615", "8"=>"720", "9"=>"842", "10"=>"986", "11"=>"1153", "12"=>"1349", "13"=>"1579", "14"=>"1847", "15"=>"2161", "16"=>"2529", "17"=>"2959", "18"=>"3462", "19"=>"4050", "20"=>"4739", "21"=>"5545", "22"=>"6488", "23"=>"7591", "24"=>"8881", "25"=>"10391", "26"=>"12157", "27"=>"14224", "28"=>"16642", "29"=>"19472", "30"=>"22782", "31"=>"24642", "32"=>"26642", "33"=>"47000", "34"=>"56000", "35"=>"72000" ); } elseif ($config['bh_style']==1) { // SDS Style: $arr_farm = array( "1"=>"240", "2"=>"281", "3"=>"329", "4"=>"386", "5"=>"452", "6"=>"530", "7"=>"622", "8"=>"729", "9"=>"854", "10"=>"1002", "11"=>"1174", "12"=>"1376", "13"=>"1613", "14"=>"1891", "15"=>"2216", "16"=>"2598", "17"=>"3045", "18"=>"3569", "19"=>"4183", "20"=>"4904", "21"=>"5748", "22"=>"6737", "23"=>"7896", "24"=>"9255", "25"=>"10848", "26"=>"12715", "27"=>"14904", "28"=>"17469", "29"=>"20476", "30"=>"24000", "31"=>"24642", "32"=>"26472", "33"=>"47000", "34"=>"56000", "35"=>"72000" ); } ?>

MfG Manuel
Reply
#3
Vielen vielen Dank !
Es war bei mir aus irgendwelchen unbekannten Gründen nicht so formatiert.
Kann geschlossen werden.
Nochmals vielen Dank!
Reply
#4
Bitte Wink
Lieg am Editor, kam bei mir auch schon vor,
Ich empfehle dir HTML Studio 1.4b (Link)
Edit: Es lag an
PHP Code:
// S1 Style: $arr_farm = array
Da wurde das Array nicht definiert

MfG Manuel
Reply
#5
empfehle notepad++
Crap?!
Reply
#6
Asow nochwas:
Wenn du Hilfe zu PHP brauchst kannst du mich fragen Wink

MfG Manuel
Reply
#7
Ok danke euch!
Werd mir die beiden Progis mal anschauen.
Reply




Users browsing this thread: 1 Guest(s)