Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Pomocy z PHP Parse error: syntax error
adidar
post 12.02.2008, 11:09:07
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 12.02.2008

Ostrzeżenie: (0%)
-----


[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?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
KCG
post 12.02.2008, 11:12:47
Post #2





Grupa: Zarejestrowani
Postów: 449
Pomógł: 4
Dołączył: 1.12.2006

Ostrzeżenie: (0%)
-----


[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?


--------------------
9242594 - zaczynasz? jak mogę, to pomogę :D /podstawowa znajomość php :P /
"to pomoc zawsze będzie gestem pięknym, zaliczana do tych teraz rzadko spotykanych..."
Go to the top of the page
+Quote Post
adidar
post 12.02.2008, 11:21:12
Post #3





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 12.02.2008

Ostrzeżenie: (0%)
-----


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


Ten post edytował Cysiaczek 12.02.2008, 11:55:38
Powód edycji: dodałem bbcode (cysiaczek)
Go to the top of the page
+Quote Post
Cysiaczek
post 12.02.2008, 12:01:36
Post #4





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




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 think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post

Closed TopicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 13.08.2025 - 22:46