Re: [PHP-DB] using a define value
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: $myerror = ERROR1; That would be $myerror= ERROR1; echo strongERROR._$myerror./strong; ... and that would be echo strong.ERROR.._$myerror./strong; -- saludos, J. Alejandro Ceballos Z. | ---+--- http://alejandro.ceballos.info | [EMAIL PROTECTED] | 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
[PHP-DB] using a define value
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 strongERROR._$myerror./strong; It not works. Any suggested solution without using _ERROR1 like a variable ? -- saludos, J. Alejandro Ceballos Z. | ---+--- http://alejandro.ceballos.info | [EMAIL PROTECTED] | 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
Re: [PHP-DB] using a define value
J. Alejandro Ceballos Z. wrote: [snip...] But while trying to be called based on parameter, is not possible to call them via: $myerror = ERROR1; That would be $myerror= ERROR1; echo strongERROR._$myerror./strong; ... and that would be echo strong.ERROR.._$myerror./strong; It not works. Does now ;) Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php