Re: [PHP-DB] variable and MySQL

2005-03-16 Thread Sam Street
a new variable first with concatenation. $question_pointer = $xxx . "_name_en"; $get_question_data[$question_pointer] Mark Cain - Original Message - From: "simon" <[EMAIL PROTECTED]> To: Sent: Monday, March 14, 2005 7:14 PM Subject: [PHP-DB] variable and MySQL

Re: [PHP-DB] variable and MySQL

2005-03-16 Thread Mark Cain
first with concatenation. $question_pointer = $xxx . "_name_en"; $get_question_data[$question_pointer] Mark Cain - Original Message - From: "simon" <[EMAIL PROTECTED]> To: Sent: Monday, March 14, 2005 7:14 PM Subject: [PHP-DB] variable and MySQL > Hi, I&

Re: [PHP-DB] variable and MySQL

2005-03-15 Thread Ross Honniball
Not entirely sure what you are wanting, but if you want a variable variable, just use a double $ sign. eg: $fred = 'var2'; $var2 = 'value of var 2'; echo $$fred; will echo 'value of var 2' At 10:14 AM 15/03/2005, you wrote: Hi, I'm trying to make a script but have a problem ... How could I do thi

[PHP-DB] variable and MySQL

2005-03-14 Thread simon
Hi, I'm trying to make a script but have a problem ... How could I do this: I'd like to use $get_question_data[xxx_name_en] where xxx would be a variable variable according to the situation where the script is called... how would I do this? tried : $get_question_data[$test_name_en] $get_que