PHP - output associate array into HTML
s with labels/headings

前端 未结 2 1035
猫巷女王i
猫巷女王i 2021-01-27 00:31

I have a PHP function that returns a single row from a localhost MySQL table like so:



        
2条回答
  •  野的像风
    2021-01-27 01:24

    I didn't understand the question very well but I think I understand what you need.

    Use while to iterate trough each row.

    while($row = $resultDesc->fetch_assoc())
    {
        echo '

    Description:

    '; echo '

    '. $row['description'] . '

    '; }

    That's not the exact solution but atleast shows you the path.

提交回复
热议问题