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
.
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
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
$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
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
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
6 matches
Mail list logo