标签: php mysql variables
我正在试图找出如何回显存储在我的mysql数据库中的变量名。 例如:
在我存储的表的“变量”字段中:
$target["year"]
PHP代码:
$target["year"]="2013"; while ($row = mysql_fetch_array($query)) { echo $row['variable']; // Output should be 2013 }
我在php.net上阅读了文章变量变量,但我找不到解决问题的方法