php添加一个新表ROW取决于数据库中的什么 [英] php adding a new table ROW depending whats in data base

查看:71
本文介绍了php添加一个新表ROW取决于数据库中的什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我想知道如何使用foreach循环为我的数据库中的每个enry添加一个新行



数据库列数

名称

日期

时间

队列数







任何建议请



Hi i would like to know how to add a new row to my table using a foreach loop for every enry that is in my database

Database colums are
Name
Date
Time
Queue Count

or

any suggestions please

<div class="table">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <th width="120">Name</th>
                                    <th width="120">Date</th>
                                    <th width="100">Time</th>
                                    <th width="130">Queue Count</th>
                                    <th width="40" class="ac">View</th>
                                </tr>
                                <?php

//                                foreach ()

//                                {

//

//                                }

                                ?>
                            </table>
                        </div>

推荐答案

<?php
//replace these 4 items with your values


host = ' 本地主机';
host = 'localhost';


user = ' ;
user = 'root';


这篇关于php添加一个新表ROW取决于数据库中的什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆