显示数据库中的值 [英] Show the value from database

查看:63
本文介绍了显示数据库中的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I have a table of menu in my database with two columns. first one is the id and other one is the name. Now i want to add the one more column in the table by the name of sub-menu (As it admin depend to add the sub-menu or not) Now please tell me how can insert the sub-menu to the table as column by giving the rights to the user. As user have choice to add the sub-menu in the some name or may be not



显示我想通过使用do while循环显示到页面。还请告诉我它在PHP中的语法是什么

do

语句..

while(行未结束的列)



我尝试了什么:



我保存了数据值前两列的数据库。现在创建和保存第三列的逻辑是什么,并且使用语法和while循环一样显示?


After showing that i want to show it to the page by using the do while loop. please also tell me what is the syntax of it in PHP that
do
statement..
while(column of row not ended)

What I have tried:

I have save the data values in database of first two columns. Now what is the logic for creating and saving third column and also the show using the syntax as do while loop?

推荐答案

您需要执行以下操作:

SQL教程 [ ^ ]和 PHP 5教程 [ ^ ]



因为。 。 。显然,如果你自己创建了初始表,你就会知道如何为它添加一个列。所以你需要学习SQL。你需要研究如何通过php访问数据库(如果你不使用MySQL,你可能需要附加组件)。
You need to do the following:
SQL Tutorial[^] AND PHP 5 Tutorial[^]

Because . . . obviously, had you created the initial table yourself, you'd know how to add a column to it. So you need to learn SQL. And you need to study how to access a database via php (and you may need add-ons if you're not using MySQL).


这篇关于显示数据库中的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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