Re: using a define value
| From: | J. Alejandro Ceballos Z. | Date: | Thu, 22 Apr 2004 23:08:26 +0000 |
| Subject: | Re: using a define value | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-34054@lists.php.net to get a copy of this message | ||
Then, is not possible to use a definition table for errors or equivalents?. It must be a variable value or a hash?
I am using this for error messages after a CGI execution. That is why planning to use a code for error, and definition table show the specific message.
Like "http://myphppage.php?error=ERROR1"
[snip...] But while trying to be called based on parameter, is not possible to call them via:
That would be $myerror= ERROR1;$myerror = "ERROR1";
-- 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... and that would be echo "<strong>".ERROR."._$myerror."</strong>";echo "<strong>ERROR"._$myerror."</strong>";