[PHP] Variables in Variables?

2005-11-18 Thread Marquez Design
Greetings. Does anyone know how to do this? I have, $var $var2 In a field called two_vars in a MySQL db. I am calling the variables inside PHP document. In that document I am saying: $var = time $var2 = clock !-- I do the query in MySQL here -- echo $two_vars; But the what prints out

[PHP] Variables in variables?

2005-11-18 Thread Marquez Design
. Does anyone know how to do this? I have, $var $var2 In a field called two_vars in a MySQL db. I am calling the variables inside PHP document. In that document I am saying: $var = time $var2 = clock !-- I do the query in MySQL here -- echo $two_vars; But the what prints

[PHP] variables within variables - question

2002-03-27 Thread Phil Schwarzmann
Im having a VERY hard time trying to explain this Here is a bit of my code... for ($i = 0; $i $num_fields; $i++) { $field = mysql_field_name($result, $i); $field2 = .$field; $output = str_replace($field2, $field), $output); } The problem I'm having here is that the variable $field

RE: [PHP] variables within variables - question

2002-03-27 Thread Rick Emery
$field2 = .$$field; -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 12:33 PM To: [EMAIL PROTECTED] Subject: [PHP] variables within variables - question Im having a VERY hard time trying to explain this Here is a bit of my

Re: [PHP] variables within variables

2001-05-01 Thread Jason Stechschulte
On Sat, Apr 28, 2001 at 07:12:15PM +0100, Robert Morrissey wrote: I have a form on one page with a text box called 'emailtext'. This gets passed to a php script that gets info from a database (such as $name, $email, etc) and mails selected email addresses; my problem is this: Say, the form

[PHP] variables within variables

2001-04-28 Thread Robert Morrissey
Hi, I have a form on one page with a text box called 'emailtext'. This gets passed to a php script that gets info from a database (such as $name, $email, etc) and mails selected email addresses; my problem is this: Say, the form passes $emailtext as Hello $name, how're you?, and this is passed