Query php to mysql [closed]

0

I have a question,

I give you an example, I have a table with several data and in it there are 6 cells called piloto1, piloto2, piloto3, ...etc.

  

You could make a query to put the cells together and that   Printase everything in the same cell of a table in HTML? If so, as   would it be?

Greetings

    
asked by element 22.08.2018 в 20:16
source

2 answers

1

I think you mean to print all the fields in one, if so you just have to make the respective query, there are N ways but here I leave one:

SELECT CONCAT(PILOTO,',',PILOTO_2,',',PILOTO_3) AS PILOTOS FROM TABLA 

Afterwards, we would only save the information in a variable and we would show it in HTML

<tr>
  <td>
    <?php echo $variable; ?>
  </td>
</tr>
    
answered by 23.08.2018 / 06:01
source
-2

I do not know if I understood correctly.

You want to print a table, and in that table a cell will print all the PILOT fields.

If so, first you have to make the query with php, and then in an html cell you print it in a specific column or line

    
answered by 22.08.2018 в 20:54