How to display in html the data of all the columns obtained through a mysql query? [duplicate]

-2

I have a table with 1000 columns (example), how to display the content, of all the columns of a line obtained through the "ID"?

SELECT * FROM 'tabela_1000_colunas' WHERE id = 1;

After this select, how do I display the contents of these 1000 columns in the "html"? Ex: column1 column2 column3 ... column999 column1000      given1 given2 given3 given999 given1000

    
asked by anonymous 17.05.2016 / 19:23

1 answer

0

I display this way, see the code below:

echo'<table align ="center" class="bortpago" border="1" cellspacing="5" cellpadding="5">';

for($x=0;$x<1000;$x++) {   
  echo 
        '<tr bgcolor="#BEBEBE" >'
            .'<td>'                               
            .coluna[1]  
            .'</td>'
            .'<td>'
            .coluna[2]   
            .'</td>'
        .'</tr>';
}
    
17.05.2016 / 20:43