using a define value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx | "La persona más patética del mundo es -------------------------------+ alguien que tiene vista, pero no visión". | | -- Hellen Keller

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux