rendered paste body$result = mysql_query($query,$connect) or die("frågan misslyckades") . mysql_error(); $content = mysql_fetch_array($result,MYSQL_ASSOC);$keys = array_keys($content);$values = array_values($content);$numCols = mysql_num_fields($result);$numRows = mysql_num_rows($result); //HEADERS echo "<table border='1px'>";echo "<tr>";for($i=0;$i<$numCols;$i++) { echo "<th>"; echo $keys[$i]; echo "</th>";}echo "</tr>";$counter = 0;/*while($counter < $numRows) { echo "<tr>"; foreach($content as $values) { echo "<td>"; echo $values; echo "</td>"; } echo "</tr>"; $counter++;} */while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "\t<tr>\n"; foreach ($line as $col_value) { echo "\t\t<td>$col_value</td>\n"; } echo "\t</tr>\n";}echo "</table>\n";