我有这个代码:
include('config.php');
$result = mysql_query("SELECT * FROM system");
while($row = mysql_fetch_array( $result )) {
$name_system = $row['name'];
$value_system = $row['value'];
if($name_system=='website_register' AND $value_system==1)
{$register_system = 1;}
else
{$register_system = 0;}
if($name_system=='website_offline' AND $value_system==1)
{$offline_system = 1;}
else
{$offline_system = 0;}
}
我的问题是循环只显示“系统”表中的最后一条记录。