Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Pomocy z PHP Parse error: syntax error
Forum PHP.pl > Forum > PHP
adidar
[Tue Feb 12 10:44:14 2008] [error] [client 79.184.109.180] File does not exist: /home/swiatapr/public_html/404.shtml
[Tue Feb 12 10:44:14 2008] [error] [client 79.184.109.180] File does not exist: /home/swiatapr/public_html/favicon.ico
[Tue Feb 12 10:00:24 2008] [error] [client 79.189.36.58] File does not exist: /home/swiatapr/public_html/404.shtml
[Tue Feb 12 10:00:24 2008] [error] [client 79.189.36.58] File does not exist: /home/swiatapr/public_html/sklep/favicon.ico
[Tue Feb 12 10:00:24 2008] [error] [client 79.189.36.58] File does not exist: /home/swiatapr/public_html/404.shtml
[Tue Feb 12 10:00:24 2008] [error] [client 79.189.36.58] File does not exist: /home/swiatapr/public_html/sklep/favicon.ico
[Tue Feb 12 10:00:24 2008] [error] PHP Parse error: syntax error, unexpected ';' in /home/swiatapr/public_html/sklep/includes/functions/database.php on line 66
[Tue Feb 12 10:00:24 2008] [error] [client 79.189.36.58] File does not exist: /home/swiatapr/public_html/404.shtml
[Tue Feb 12 10:00:24 2008] [error] [client 79.189.36.58] File does not exist: /home/swiatapr/public_html/sklep/favicon.ico
[Tue Feb 12 10:00:24 2008] [error] [client 79.189.36.58] File does not exist: /home/swiatapr/public_html/404.shtml
[Tue Feb 12 10:00:24 2008] [error] [client 79.189.36.58] File does not exist: /home/swiatapr/public_html/sklep/style/style.css
[Tue Feb 12 09:58:44 2008] [error] [client 87.96.33.208] File does not exist: /home/swiatapr/public_html/404.shtml
[Tue Feb 12 09:58:44 2008] [error] [client 87.96.33.208] File does not exist: /home/swiatapr/public_html/favicon.ico

Prosze o pomoc w czym tkwi problem i jak to naprawic?
KCG
[Tue Feb 12 10:00:24 2008] [error] PHP Parse error: syntax error, unexpected ';' in /home/swiatapr/public_html/sklep/includes/functions/database.php on line 66
Zapewne brakuje średnika w 65 linii lub czegoś w 66.
A reszta jakby pliki nie istniały?
adidar
za chwile wyswietle caly tekst z 66 linia
  1. <?php
  2. /*
  3.   $Id: database.php,v 1.21 2003/06/09 21:21:59 hpdl Exp $
  4.  
  5.   osCommerce, Open Source E-Commerce Solutions
  6.  
  7.   Copyright Š 2003 osCommerce
  8.  
  9.   Released under the GNU General Public License
  10.    
  11.   mod MaxiShop Total B2B v 1.0 by Z. Maciej "Miki" Bajkowski <a href="http://www.maxishop.prv.pl" target="_blank">http://www.maxishop.prv.pl</a>
  12.  
  13. */
  14.  
  15. function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') {
  16. global $link;
  17.  
  18. if (USE_PCONNECT == 'true') {
  19. $link = mysql_pconnect($server, $username, $password);
  20. } else {
  21. $link = mysql_connect($server, $username, $password);
  22. }
  23.  
  24. if ($link) mysql_select_db($database);
  25.  
  26. return $link;
  27. }
  28.  
  29. function tep_db_close($link = 'db_link') {
  30. global $link;
  31.  
  32. return mysql_close($link);
  33. }
  34.  
  35. function tep_db_error($query, $errno, $error) { 
  36. die('<font color="#000000"><b>' . $errno . ' - ' . $error . '<br><br>' . $query . '<br><br><small><font color="#ff0000">[TEP STOP]</font></small><br><br></b></font>');
  37. }
  38.  
  39. function tep_db_query($query, $link = 'db_link') {
  40. global $link;
  41.  
  42. if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {
  43. error_log('QUERY ' . $query . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
  44. }
  45.  
  46. $result = mysql_query($query, $link) or tep_db_error($query, mysql_errno(), mysql_error());
  47.  
  48. if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {
  49.  $result_error = mysql_error();
  50.  error_log('RESULT ' . $result . ' ' . $result_error . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
  51. }
  52.  
  53. return $result;
  54. }
  55.  
  56. function tep_db_perform($table, $data, $action = 'insert', $parameters = '', $link = 'db_link') {
  57. reset($data);
  58. if ($action == 'insert') {
  59. $query = 'insert into ' . $table . ' (';
  60. while (list($columns, ) = each($data)) {
  61. $query .= $columns . ', ';
  62. }
  63. $query = substr($query, 0, -2) . ') values (';
  64. reset($data);
  65. while (list(, $value) = e ?>  tu jest ta 66 linia
Cysiaczek
A kilka lini poniżej? Człowieku. Gdzieś jest średnik, którego nie powinno być. Zapewne nie domknąłeś któregoś nawiasu. Mamy Tobie za debugger robić?

Zamykam, a za takie tematy to warny powinny lecieć automatycznie :|
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.