Re: [PHP] Varible calling a define value

2004-12-13 Thread Chris Boget
Currently i have a Defiune setup of: define(THS, This is a test); I also have a string value of $that='THS'; When I echo out $that it get THS. I want to echo out $that and get: This is a test. How can I do this? $that = THS You don't want the quotes. thnx, Chris -- PHP General Mailing

RE: [PHP] Varible calling a define value

2004-12-13 Thread Jay Blanchard
[snip] Currently i have a Defiune setup of: define(THS, This is a test); I also have a string value of $that='THS'; When I echo out $that it get THS. I want to echo out $that and get: This is a test. How can I do this? [/snip] Remove the quotes around THS $that = THS; echo $that; -- PHP

Re: [PHP] Varible calling a define value

2004-12-13 Thread Dev
I actually figure this out from the web site and had to use constant(); At 04:36 PM 12/13/2004, you wrote: Hello all, I am setting up a page that I would like to use DEFINE to retrieve more information about abriviations in a database. The database part all works just fine. Currently i have a