您应该只使用$ value而不是{$ value}。在while循环内,您不需要另一个foreach循环。
$output_string = '';$output_string .= '<table border="1">';while($row = mysql_fetch_assoc($facebook)){ $output_string .= '<tr>'; $output_string .= '<td>'.$row['Your table column name here'].'</td>'; $output_string .= '</tr>';}$output_string .= '</table>';


