Pisałem już o tym wcześniej. Błąd poprawiłem (tak mi się wydawało) jednak mimo wszystko pokazuje mi błąd o nieoczekiwanym zakończeniu działania. Pod spodem kod:
<!--c1--><div class='codetop'>Kod</div><div class='codemain'><!--ec1--><?php include ("headermovie.php"); ?> <?php /*Funckcja obliczająca, czy film okazał się kasowym sukcesem czy raczej sromotna porażką*/ function calculate_differences($takings, $cost){ $difference = $takings - $cost; if ($difference < 0){ $font_color = 'red'; $profit_or_loss = '$' . $difference . 'm'; }else if($difference >0){ $font_color = 'green'; $profit_or_loss = "$" . $difference . "m"; }else { $font_color = 'blue'; $profit_or_loss = "Równowaga"; } return "<font color=\"$font_color\">" . $profit_or_loss . "</font>"; } function get_director(){ $query_d = "SELECT people_fullname ". "FROM people ". "WHERE people_id = '$movie_director'"; //przypisuje odpowiednie pozycje z bd cyfrowo $director = $people_fullname; } function get_leadactor(){ $query_a = "SELECT people_fullname ". "FROM people ". "WHERE people_id = '$movie_leadactor'"; $leadactor = $people_fullname; } $query = "SELECT * FROM movie ". "WHERE movie_id= '" . $_GET['movie_id'] . "'"; // przechwyca id z adrsu URL $movie_table_headings=<<<EB <tr> <th>Tytuł filmu</th> <th>Rok produkcji</th> <th>Reżyser</th> <th>Główny aktor</th> <th>Czas trwania</th> <th>Zysk lub strata</th> </tr> EB; $movie_health = calculate_differences($movie_takings, $movie_cost); //wywołanie funkcji $page_start =<<<EC <html> <head> <meta http-equiv=\"content-type"\ content=\"text/html; charset=iso-8859-2"\> <title>Szczegóły i recenzja dla: $movie_name</title> </head> <body> EC; $movie_details =<<<ED <table width = '70%' border = '0' cellspacing = '2' cellpadding = '2' align ='center'> <tr> <th colspan='6'><u><h2>$movie_name: szczegóły</h2></u></th> </tr> $movie_table_headings <tr> <td width = '33%' align = 'center'>$movie_name</td> <td align = 'center'>$movie_year</td> <td align = 'center'>$director</td> <td align = 'center'>$leadactor</td> <td align = 'center'>$movie_running_time</td> <td align = 'center'>$movie_health</td> </tr> </table> <br /> <br /> ED; $page_end =<<<EE </body> </html> EE; $detailed_movie_info =<<<EF $page_start $movie_details $page_end EF; ?><!--c2--></div><!--ec2-->
Treść błędu: Parse error: syntax error, unexpected $end in D:\xampp\xampp\xampp\htdocs\movie_details.php on line 138
Proszę o pomoc głowię się nad tym ale czuję, że to jakieś potknięcie...gdzieś właśnie
Pozdrawiam.