J'ai un souci et pourtant je pense bien faire mais PHP 5.3.2 me dit que non....
Voici un extrait de la classe que je définis:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Screen extends Sql
{   var  $name , $title, $subtitle, $form , $submenu , $klimsg ;
	var  $row , $open, $param_BASE, $fetch, $debug, $RC_sql, $RC_open ;

	const NAME	 	= "name" ;
	const TITLE 	= "title" ;
	const SUBTITLE 	= "subtitle" ;
	const FORM 		= "form" ;
	const SUBMENU 	= "submenu" ;
	const KLIMSG 	= "klimsg" ;

	function __construct( $name , $title, $subtitle, $form , $submenu , $klimsg , $debug=false)	
	{	......... 
	}
// =============================================================================================================================== //
// =====================================================      Page Fuctions         ============================================== //
// =============================================================================================================================== //
.........
.........                  l'inverse n'est pas aussi évident !   
//   =========================================================================================================
				case 1 :	user_error("Screen Case 1 - page read !" , E_USER_NOTICE) ;
							if ( $this->row = $this->fetch_row($this->gu) )  
								{	$this->__set(NAME 	 	, $this->row[NAME		]) ;
		 						 	$this->__set(TITLE  	, $this->row[TITLE		]) ;
						  			$this->__set(SUBTITLE 	, $this->row[SUBTITLE	]) ;
								 	$this->__set(FORM		, $this->row[FORM		]) ;
								  	$this->__set(SUBMENU	, $this->row[SUBMENU	]) ;
								  	$this->__set(KLIMSG		, $this->row[KLIMSG		]) ;
Notez les 2 pavés en gras.... C'est mon souci car voici ce que PHP me raconte:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[16-Apr-2010 17:19:18] PHP Notice:  Use of undefined constant NAME - assumed 'NAME' in F:\WebSites\jecrapahute\class\screen.php on line 93
[16-Apr-2010 17:19:18] PHP Notice:  Use of undefined constant NAME - assumed 'NAME' in F:\WebSites\jecrapahute\class\screen.php on line 93
[16-Apr-2010 17:19:18] PHP Notice:  Undefined index: NAME in F:\WebSites\jecrapahute\class\screen.php on line 93
 
[16-Apr-2010 17:19:18] PHP Notice:  Use of undefined constant TITLE - assumed 'TITLE' in F:\WebSites\jecrapahute\class\screen.php on line 94
[16-Apr-2010 17:19:18] PHP Notice:  Use of undefined constant TITLE - assumed 'TITLE' in F:\WebSites\jecrapahute\class\screen.php on line 94
[16-Apr-2010 17:19:18] PHP Notice:  Undefined index: TITLE in F:\WebSites\jecrapahute\class\screen.php on line 94
 
[16-Apr-2010 17:19:18] PHP Notice:  Use of undefined constant SUBTITLE - assumed 'SUBTITLE' in F:\WebSites\jecrapahute\class\screen.php on line 95
[16-Apr-2010 17:19:18] PHP Notice:  Use of undefined constant SUBTITLE - assumed 'SUBTITLE' in F:\WebSites\jecrapahute\class\screen.php on line 95
[16-Apr-2010 17:19:18] PHP Notice:  Undefined index: SUBTITLE in 
F:\WebSites\jecrapahute\class\screen.php on line 95
 
[16-Apr-2010 17:19:18] PHP Notice:  Use of undefined constant FORM - assumed 'FORM' in F:\WebSites\jecrapahute\class\screen.php on line 96
[16-Apr-2010 17:19:18] PHP Notice:  Use of undefined constant FORM - assumed 'FORM' in F:\WebSites\jecrapahute\class\screen.php on line 96
[16-Apr-2010 17:19:18] PHP Notice:  Undefined index: FORM in F:\WebSites\jecrapahute\class\screen.php on line 96
 
[16-Apr-2010 17:19:18] PHP Notice:  Use of undefined constant SUBMENU - assumed 'SUBMENU' in F:\WebSites\jecrapahute\class\screen.php on line 97
[16-Apr-2010 17:19:18] PHP Notice:  Use of undefined constant SUBMENU - assumed 'SUBMENU' in F:\WebSites\jecrapahute\class\screen.php on line 97
[16-Apr-2010 17:19:18] PHP Notice:  Undefined index: SUBMENU in F:\WebSites\jecrapahute\class\screen.php on line 97
 
[16-Apr-2010 17:19:18] PHP Notice:  Use of undefined constant KLIMSG - assumed 'KLIMSG' in F:\WebSites\jecrapahute\class\screen.php on line 98
[16-Apr-2010 17:19:18] PHP Notice:  Use of undefined constant KLIMSG - assumed 'KLIMSG' in F:\WebSites\jecrapahute\class\screen.php on line 98
[16-Apr-2010 17:19:18] PHP Notice:  Undefined index: KLIMSG in F:\WebSites\jecrapahute\class\screen.php on line 98
Je comprends dans le contexte PHP la 3 ième ligne de chaque groupe de 3 lignes correspondant à un attribut de la table adressée
PHP assume en majuscule alors que la table et donc la $row reçu par la lecture mySQl est en miniscule, donc index inconnu....

Mais pourquoi mes constantes ne sont-elles pas reconnues ?

Merci de ce coup de main....

Esteban