Thanks , I have found the solution ...
[PHP]<?php
$text = 'text text $asd text';
preg_match_all( '/\$[a-zA-Z]+/', $text, $matches);
$fieldName = trim($matches[0][0], "$");
$query = @mysql_query("S ELECT `$fieldName` FROM `table`");
?> [/PHP]
Leave a comment: