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 Def

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 Gen

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 Gene

Re: [PHP] varible

2004-04-12 Thread edwardspl
"Chris W. Parker" wrote: > [EMAIL PROTECTED] > ??on Monday, April 12, 2004 8:32 AM said: > > > Is there a solution ( without open global ) , then send the value of > > the varible of list.php to view.php ? > > you can put the variables in $_SESSION or pass them via the q

RE: [PHP] varible

2004-04-12 Thread Chris W. Parker
[EMAIL PROTECTED] on Monday, April 12, 2004 8:32 AM said: > Is there a solution ( without open global ) , then send the value of > the varible of list.php to view.php ? you can put the variables in $_SESSION or pass them via the querystring. hth, chris. -- PHP G

Re: [PHP] varible in url question

2002-07-10 Thread Philip Olson
Please read this manual page, it has examples to suit your needs: http://www.php.net/manual/en/language.variables.external.php Regards, Philip Olson On Wed, 10 Jul 2002, sven vandamme wrote: > on my page (lessen.php) > > i have a variable $sort > > if this varible is empty if enterd the p

RE: [PHP] varible in url question

2002-07-10 Thread Chris Kay
Php4? or 3? Have you tried $_GET["sort"] --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vu

Re: [PHP] varible in url question

2002-07-10 Thread Richard Baskett
It works fine on my system. If you have register globals off you'll need to do it this way: Rick And many strokes though with a little axe hew down and fell the hardest-timbered oak. - Shakespeare > From: "sven vandamme" <[EMAIL PROTECTED]> > Date: Wed, 10 Jul 2002 22:40:48 +0200 > To: [EMAI

Re: [PHP] Varible Varibles

2002-06-13 Thread Jason Wong
On Friday 14 June 2002 00:38, John Holmes wrote: > I think you're missing the point of variable variables. Quite :-) > I kind of consider variable variables the poor mans array. Most any > solution you think of with variable variables could be better solved by > using arrays. Actually variable

RE: [PHP] Varible Varibles

2002-06-13 Thread Pushkar Pradhan
I'm trying to use variable variables to work on arrays: $forest = array("a", "b", "c", ...); $layer[$l]= "forest"; Now I want to access all array members of $forest using $$layer: e.g. for($c = 0; $c < $$layer[$l]; $l++) { echo $$layer[$l][$c]; } But this doesn't work, gives syntax error, So

RE: [PHP] Varible Varibles

2002-06-13 Thread John Holmes
I think you're missing the point of variable variables. After the first use of $$a, you now have a variable called $foo with a value of 'bar'. So your echo would be echo "$a $foo"; I kind of consider variable variables the poor mans array. Most any solution you think of with variable variable

RE: [PHP] Varible Varibles

2002-06-12 Thread Peter
2002 12:44 PM To: 'Peter'; Php Subject: RE: [PHP] Varible Varibles well, the first method is the same as saying $a = "foo"; $foo = "bar"; echo "$a $foo"; whereas the second method is appending "bar" to $a (thus making it "foobar") In

RE: [PHP] Varible Varibles

2002-06-12 Thread Martin Towell
well, the first method is the same as saying $a = "foo"; $foo = "bar"; echo "$a $foo"; whereas the second method is appending "bar" to $a (thus making it "foobar") In first method, you get two variables, the second, just one -Original Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent