using a define value

From: Date: Tue, 20 Apr 2004 21:43:35 +0000
Subject: using a define value
Groups: php.db 
Request: Send a blank email to php-db+get-33989@lists.php.net to get a copy of this message
I have declared some values as define statements, like: define("_ERROR1","Error: Your value is wrong, please check params"); But while trying to be called based on parameter, is not possible to call them via: $myerror = "ERROR1"; echo "<strong>ERROR"._$myerror."</strong>"; It not works. Any suggested solution without using "_ERROR1" like a variable ? -- saludos, J. Alejandro Ceballos Z. | ---------------------------+--------------------------- http://alejandro.ceballos.info | buzon@alejandro.ceballos.info | "La persona más patética del mundo es -------------------------------+ alguien que tiene vista, pero no visión". | | -- Hellen Keller

« previous php.db (#33989) next »