Page 1 of 1

load variable value from mysql

Posted: Wed Jun 29, 2011 1:24 pm
by srdva59
hi,
i have some variable defined in a php file.
for example:

DEFINE( '_clientass', 'Cliente' );

so when i do a echo of _clientass they return Cliente
now i want call _clientass from a mysql row and return Cliente
If i do this: $row['variable'] he return _clientass but i want that the
php can return Cliente.

how can i do that?
thanks a lot for your help
:)

Re: load variable value from mysql

Posted: Wed Jun 29, 2011 1:27 pm
by Jade
You'll need to use the eval() function.