note 38024 added to language.variables.scope

From: Date: Fri, 05 Dec 2003 07:26:15 +0000
Subject: note 38024 added to language.variables.scope
Groups: php.notes 
Request: Send a blank email to php-notes+get-61430@lists.php.net to get a copy of this message
I have a problem with variables..in php 4.3.3... the error is " [Thu Dec 4 22:22:48 2003] [error] PHP Notice: Use of undefined constant nick - assumed 'nick' in /usr/local/www/data-dist/clienti/ingashka.ro/jos2.php on line 14 " I have a variable $stat which is the result of the interogation of the database...There is $stat['nick'] and $stat['id']..and so on... on every page I have the same interogation, i reinitialize the values for $stat..why does this error??? 'nick' is the field from the database... I use mysql, apache server and php 4.3.3 thanks ---- Manual Page -- http://www.php.net/manual/en/language.variables.scope.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38024 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38024&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38024&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61430) next »