Variables in Variables?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 is

$var 

$var2 

not "time" and "clock".  I know that is what is in the database, but I want
it to replace the variables when printed in the PHP file.

Does this make sense to anyone? Does anyone know how to do this?

--
Steve

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux