jason213123 Posted June 29, 2011 Share Posted June 29, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/240726-load-variable-value-from-mysql/ Share on other sites More sharing options...
fugix Posted June 29, 2011 Share Posted June 29, 2011 huh? can you be clearer with your explanation Quote Link to comment https://forums.phpfreaks.com/topic/240726-load-variable-value-from-mysql/#findComment-1236457 Share on other sites More sharing options...
xyph Posted June 29, 2011 Share Posted June 29, 2011 You want to use echo constant( $row['variable'] ); Quote Link to comment https://forums.phpfreaks.com/topic/240726-load-variable-value-from-mysql/#findComment-1236461 Share on other sites More sharing options...
jason213123 Posted June 29, 2011 Author Share Posted June 29, 2011 hi, thanks a lot for your help that as solved my question Quote Link to comment https://forums.phpfreaks.com/topic/240726-load-variable-value-from-mysql/#findComment-1236472 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.