2010-10-21 90 views

回答

2
$sql = "SELECT * FROM table"; 
$result = mysql_query($sql); 

while($row = mysql_fetch_assoc($result)) 
{ 
    foreach ($row as $columnName => $value) 
    { 
     if (empty($value)) 
     { 
      echo $columnName; 
     } 
    } 
}