There is a database with a table and entries in it. It is necessary to write data from the database to the array and output them in a table.
A piece of code where an entry to the array is represented
<?php mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("bospor_abons") or die(mysql_error()); $strSQL = "SELECT * FROM abons_table"; $rs = mysql_query($strSQL); $abons = array(); while($rows = mysql_fetch_array($rs)) { $abons[] = array_values($rows); } var_dump($abons); mysql_close(); ?> I can not understand why all the data is duplicated. And how is all this normal output to the table so that all the fields of one DB column are displayed in one row? As far as I understand it is necessary to use the foreach loop, but how exactly - I cannot understand. Help me please.

while(). - mix