»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 06-13-2003, 12:03 PM   #1 (permalink)
DKY
Registered User
 
Join Date: Jun 2003
Posts: 34
DKY is on a distinguished road
Send a message via ICQ to DKY Send a message via AIM to DKY Send a message via Yahoo to DKY
making a variable get used with a variable

I have this problem, that's REALLY difficult to explain. but it all sums down to this.

I've got
PHP Code:
$text1="blah";
$text2='$text1'
and I've got
PHP Code:
<?php echo $text2?>
and all that shows up on the page is $text1, when I want the text that $text1 is assigned to to show up. How do I do this?

is there a function I'm missing?

DKY is offline   Reply With Quote
Old 06-13-2003, 05:15 PM   #2 (permalink)
Registered User
 
Join Date: Mar 2002
Posts: 99
Ximensions is on a distinguished road
Remove the quotes, and it should work - so replace $text2='$text1'; with $text2=$text1;
__________________
--------------------------------------
http://www.ximensions.com
Ximensions is offline   Reply With Quote
Old 06-14-2003, 06:53 AM   #3 (permalink)
DKY
Registered User
 
Join Date: Jun 2003
Posts: 34
DKY is on a distinguished road
Send a message via ICQ to DKY Send a message via AIM to DKY Send a message via Yahoo to DKY
sweet, thanks
DKY is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 09:03 PM.