php.de

Zurück   php.de > Webentwicklung > PHP Einsteiger > PHP Tipps 2009

 
 
LinkBack Themen-Optionen Thema bewerten
Alt 08.01.2009, 00:26  
Neuer Benutzer
 
Registriert seit: 22.11.2007
Beiträge: 21
Natheedo befindet sich auf einem aufstrebenden Ast
Standard Use of undefined constant xxx - assumed 'xxx' in xxx ???

Hallo,

ich bekomme bei meinem Skript laufend folgende Fehlermeldung :

Code:
Use of undefined constant wert - assumed 'wert' in C:\Programme\XAMPP\htdocs\User\test.php on line 
 
Notice: Use of undefined constant position - assumed 'position' in C:\Programme\XAMPP\htdocs\User\test.php on line 54
 
Notice: Use of undefined constant von - assumed 'von' in C:\Programme\XAMPP\htdocs\User\test.php on line 54
 
Notice: Use of undefined constant nachricht - assumed 'nachricht' in C:\Programme\XAMPP\htdocs\User\test.php on line 55
 
Notice: Use of undefined constant artikel - assumed 'artikel' in C:\Programme\XAMPP\htdocs\User\test.php on line 56
 
Notice: Use of undefined constant datum - assumed 'datum' in C:\Programme\XAMPP\htdocs\User\test.php on line 57
 
Notice: Use of undefined constant wert - assumed 'wert' in C:\Programme\XAMPP\htdocs\User\test.php on line 54 
usw ....

In der besagten Passage steht :

PHP-Code:
[b]if ( $bewertung "wert" ] != "Pos" )[/b]
[
b]                        {[/b]
[
b]                           print "<tr>";[/b]
[
b]                           print "<td width='260' class='produkttabelle' style='border-left:0px; border-bottom:0px; padding:3px;'><img src=\"http://link/icon{$bewertung [wert]}_16x16.gif\"> ( {$bewertung [position]} ) {$bewertung [von]}</td>";[/b]
[
b]                           print "<td width='270' class='produkttabelle' style='border-left:0px; border-bottom:0px; padding:3px;'>{$bewertung [nachricht]}</td>";[/b]
[
b]                           print "<td width='60' class='produkttabelle' style='border-left:0px; border-bottom:0px; padding:3px;'>{$bewertung [artikel]}</td>";[/b]
[
b]                           print "<td width='80' class='produkttabelle' style='border-left:0px; border-bottom:0px; border-right:0px;'><center>{$bewertung [datum]} Uhr</center></td>";[/b]
[
b]                           print "</tr>";[/b]
[
b]                        }[/b]
[
b]                }[/b]
[
b][/b
Kann mir jemand sagen woran das liegt ? Ich raffs einfach nicht was ich falsch mache ...

Danke
Natheedo ist offline  
Sponsor Mitteilung
PHP Code Flüsterer

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

Alt 08.01.2009, 00:43  
Erfahrener Benutzer
 
Benutzerbild von David
 
Registriert seit: 05.09.2007
Beiträge: 5.044
David wird schon bald berühmt werden
Standard

Wenn Du die {xyz} Syntax verwendest, musst Du die Zeichenketten-Indizes in Anführungszeichen setzen.
PHP-Code:
"... {$bewertung['position']} ..." 
siehe PHP: Arrays - Manual
David ist offline  
 


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
[Erledigt] Undefined variable Fehler SilferSurver PHP Tipps 2009 2 05.01.2009 02:07
php datei löschen djscaleo PHP Tipps 2008 21 14.11.2008 15:47
Undefined variable Undefined property: block xxJJxx PHP Tipps 2008 16 05.08.2008 15:30
CONSTANT definition ist nicht zufriedenzustellen Promaetheus PHP Tipps 2008 12 18.06.2008 11:20
Notice: Undefined index Kein Genie PHP Tipps 2008 5 23.04.2008 17:40
Seite nicht ohne design aufrufen Buschdieb PHP Tipps 2006 27 21.04.2006 20:41
Use of undefined constant ... PHP Tipps 2005-2 12 09.09.2005 13:28
use of undefined constant PHP Tipps 2005-2 7 27.07.2005 20:11
Use of undefined constant info_id - assumed 'info_id' PHP Tipps 2005 1 26.05.2005 14:45
Fehlermeldung / Notice ?! andrew22 PHP Tipps 2005 7 03.04.2005 20:15
Notice: Use of undefined constant void - assumed 'void' in / PHP Tipps 2005 7 16.02.2005 09:05
Notice: Use of undefined constant email_falsch....? PHP Tipps 2005 5 01.02.2005 13:55
Use of undefined constant total - assumed 'total' in PHP Tipps 2004-2 3 07.11.2004 17:58
undefined constant PHP Tipps 2004 5 03.07.2004 13:04

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
use of undefined constant, notice: use of undefined constant, use of undefined constant - assumed, use of undefined constant assumed, notice use of undefined constant assumed, php use of undefined constant, php undefined class constant, php use of undefined constant assumed, xxx.xxx.php, use of undefined constant assumed php, use of undefined constant php - assumed \'php\', notice: use of undefined constant assumed, undefined class constant, use of undefined constant php - assumed \'php, notice: use of undefined constant d - assumed \'d\' in, assumed php, use of undefined constant datum - assumed, use of undefined constant c - assumed \'c\' in, \use of undefined constant - assumed \' \'\, notice: use of undefined constant date - assumed \'date\'

Alle Zeitangaben in WEZ +2. Es ist jetzt 20:06 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