Dynamic create rows and colum with the help of PHP and HTML

前端 未结 5 1698
面向向阳花
面向向阳花 2021-01-01 02:17

I want to create dynamic rows and column with the help of PHP and HTML but I am little confused about this code so some help is definitely appreciated.

&l         


        
5条回答
  •  清歌不尽
    2021-01-01 02:30

    i think you should try doing it in a while loop . for example

    $sql = your.sql.query;
    $row = mysql_query($sql);
    $result = mysql_fetch_arrey($row)
    
    while($row!=0) {
    echo "
    
    // number of 
    ";
    }
    

    if i understand what you're trying to do.

    提交回复
    热议问题
    you need according to your data return in the query: $result['column'] $result['column']