php.de

Zurück   php.de > Webentwicklung > PHP Einsteiger > PHP Tipps 2005-2

 
 
LinkBack Themen-Optionen Thema bewerten
Alt 20.08.2005, 20:10  
Gast
 
Beiträge: n/a
Standard parse error, unexpected T_STRING ... Finde den Fehler nicht!

Hi,

bekomme folgenden Fehler angezeigt:
Parse error: parse error, unexpected T_STRING in /home/www/.../includes/modules/product_listing.php on line 116

Finde ihn aber leider nicht...
Kann mir grad mal jemand helfen?

product_listing.php
Code:
111          case 'PRODUCT_LIST_PRICE':
112            $lc_align = 'right';
113            if (tep_not_null($listing['specials_new_products_price'])) {
114              $lc_text = '<s>' .  $currencies->display_price2($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s><span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>';
115            } elseif ($listing['products_master_status'] != '1' && $listing['products_master'] == '0') {
116 Â* Â* Â* Â* Â* Â*$lc_text = '' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '';
117 Â* Â* Â* Â*} else {
118              $lc_text = '' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '';
119            }
120            break;
Vielen Dank!
 
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 20.08.2005, 20:14  
Gast
 
Beiträge: n/a
Standard

1. PHP in PHP-Tags.
2. Kann im Moment auch keinen Fehler finden, muss also schon weiter oben im Code sein, zeig mal ein bisschen mehr, bitte.
 
Alt 20.08.2005, 20:20  
Gast
 
Beiträge: n/a
Standard

Hi axon,

der funktionierende alte Code
PHP-Code:
<?php
94         
switch ($column_list[$col]) {
95           case 'PRODUCT_LIST_MODEL':
96             $lc_align '';
97             $lc_text '' $listing['products_model'] . '';
98             break;
99           case 'PRODUCT_LIST_NAME':
100             $lc_align '';
101             if (isset($HTTP_GET_VARS['manufacturers_id'])) {
102               $lc_text '[url="' tep_href_link(FILENAME_PRODUCT_INFO'manufacturers_id=' $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' $listing['products_id']) . '"]' $listing['products_name'] . '[/url]';
103             } else {
104               $lc_text '[url="' tep_href_link(FILENAME_PRODUCT_INFO, ($cPath 'cPath=' $cPath '&' '') . 'products_id=' $listing['products_id']) . '"]' $listing['products_name'] . '[/url]';
105             }
106             break;
107           case 'PRODUCT_LIST_MANUFACTURER':
108             $lc_align '';
109             $lc_text '[url="' tep_href_link(FILENAME_DEFAULT'manufacturers_id=' $listing['manufacturers_id']) . '"]' $listing['manufacturers_name'] . '[/url]';
110             break;
111           case 'PRODUCT_LIST_PRICE':
112             $lc_align 'right';
113             if (tep_not_null($listing['specials_new_products_price'])) {
114               $lc_text '<s>' .  $currencies->display_price2($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s><span class="productSpecialPrice">' $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>';
115             } else {
116               $lc_text '' $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '';
117             }
118             break;
119           case 'PRODUCT_LIST_QUANTITY':
120             $lc_align 'right';
121             $lc_text '' $listing['products_quantity'] . '';
122             break;
123           case 'PRODUCT_LIST_WEIGHT':
124             $lc_align 'right';
125             $lc_text '' $listing['products_weight'] . '';
126             break;
127           case 'PRODUCT_LIST_IMAGE':
128             $lc_align 'center';
129             if (isset($HTTP_GET_VARS['manufacturers_id'])) {
130               $lc_text '[url="' tep_href_link(FILENAME_PRODUCT_INFO'manufacturers_id=' $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' $listing['products_id']) . '"]' tep_image(DIR_WS_IMAGES $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTHSMALL_IMAGE_HEIGHT) . '[/url]';
131             } else {
132               $lc_text '[url="' tep_href_link(FILENAME_PRODUCT_INFO, ($cPath 'cPath=' $cPath '&' '') . 'products_id=' $listing['products_id']) . '"]' tep_image(DIR_WS_IMAGES $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTHSMALL_IMAGE_HEIGHT) . '[/url]';
133             }
134             break;
?>
der neue, nicht mehr funktionierende Code:
PHP-Code:
<?php

94        
switch ($column_list[$col]) {
95          case 'PRODUCT_LIST_MODEL':
96            $lc_align '';
97            $lc_text '' $listing['products_model'] . '';
98            break;
99          case 'PRODUCT_LIST_NAME':
100            $lc_align '';
101            if (isset($HTTP_GET_VARS['manufacturers_id'])) {
102              $lc_text '[url="' tep_href_link(FILENAME_PRODUCT_INFO'manufacturers_id=' $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' $listing['products_id']) . '"]' $listing['products_name'] . '[/url]';
103            } else {
104              $lc_text '[url="' tep_href_link(FILENAME_PRODUCT_INFO, ($cPath 'cPath=' $cPath '&' '') . 'products_id=' $listing['products_id']) . '"]' $listing['products_name'] . '[/url]';
105            }
106            break;
107          case 'PRODUCT_LIST_MANUFACTURER':
108            $lc_align '';
109            $lc_text '[url="' tep_href_link(FILENAME_DEFAULT'manufacturers_id=' $listing['manufacturers_id']) . '"]' $listing['manufacturers_name'] . '[/url]';
110            break;
111          case 'PRODUCT_LIST_PRICE':
112            $lc_align 'right';
113            if (tep_not_null($listing['specials_new_products_price'])) {
114              $lc_text '<s>' .  $currencies->display_price2($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s><span class="productSpecialPrice">' $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>';
115            } elseif ($listing['products_master_status'] != '1' && $listing['products_master'] == '0') {
116 Â* Â* Â* Â* Â* Â*$lc_text 'ab' $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '';
117 Â* Â* Â* Â*} else {
118              $lc_text '' $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '';
119            }
120            break;
121          case 'PRODUCT_LIST_QUANTITY':
122            $lc_align 'right';
123            $lc_text '' $listing['products_quantity'] . '';
124            break;
125          case 'PRODUCT_LIST_WEIGHT':
126            $lc_align 'right';
127            $lc_text '' $listing['products_weight'] . '';
128            break;
129          case 'PRODUCT_LIST_IMAGE':
130            $lc_align 'center';
131            if (isset($HTTP_GET_VARS['manufacturers_id'])) {
132              $lc_text '[url="' tep_href_link(FILENAME_PRODUCT_INFO'manufacturers_id=' $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' $listing['products_id']) . '"]' tep_image(DIR_WS_IMAGES $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTHSMALL_IMAGE_HEIGHT) . '[/url]';
133            } else {
134              $lc_text '[url="' tep_href_link(FILENAME_PRODUCT_INFO, ($cPath 'cPath=' $cPath '&' '') . 'products_id=' $listing['products_id']) . '"]' tep_image(DIR_WS_IMAGES $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTHSMALL_IMAGE_HEIGHT) . '[/url]';
135            }
136            break;

?>

Danke für Deine Hilfe.
 
 


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
parse error...finde den fehler einfach nicht Matthiasnet PHP Tipps 2006 3 08.10.2006 20:58
parse fehler - ich komm nicht drauf mausemy PHP Tipps 2006 10 14.02.2006 21:08
Parse error: parse error, unexpected $... GrU3nL!nG PHP Tipps 2005-2 4 11.06.2005 18:10
Wo ist der Fehler Parse error: syntax error, unexpected T_CO EvilDragon PHP Tipps 2005-2 3 10.06.2005 16:31
Interpreter gibt Parse Erro aus - Wo steckt der Fehler? PHP Tipps 2005 10 30.04.2005 18:04
Finde den Parse Error net bzw. kann ihn net beheben PHP Tipps 2005 9 17.04.2005 01:45
Fehlermeldung - aber kein fehler... Tschuu HTML, Usability und Barrierefreiheit 16 14.03.2005 15:56
Wo liegt denn der Fehler??? Calli PHP Tipps 2005 5 25.02.2005 13:58
[Erledigt] mysql fehler PHP Tipps 2004 2 03.11.2004 00:32
verblüffend: Parse error: parse error, unexpected T_STRING, PHP Tipps 2004 1 07.10.2004 09:05
Parse error: parse error, unexpected $ smoere PHP Tipps 2004 2 27.09.2004 20:18
Parse error: parse error in /srv/www/htdocs/web27/html/kunde PHP Tipps 2004 3 19.09.2004 18:14
array_push nur in begrenzter Anzahl ausführen ? PHP Tipps 2004 2 07.09.2004 09:05
Parse error: wo ist der Fehler!? PHP Tipps 2004 6 19.08.2004 21:04
mysql_real_escape_string - Fehler Schaelle Datenbanken 0 03.07.2004 23:32

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
parse error: syntax error, unexpected t_string in /includes/modules/product_listing.php on line 135, tep_get_tax_rate, unexpected t_string fehler finden, array_push unexpected t_string, $lc_text, switch unexpected t_string, php unexpected t_string switch, $listing[\'products_master\']

Alle Zeitangaben in WEZ +1. Es ist jetzt 22:08 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.