HTML表单和PHP代码以创建配置文件查看器 [英] HTML Form and PHP Code to create a Profile Viewer

查看:87
本文介绍了HTML表单和PHP代码以创建配置文件查看器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个网站,我需要在此注册用户,为此,我开发了一个简单的HTML表单并使用PHP在MYSQL数据库中发送数据,该网站运行良好.

但是现在我需要一个接一个地显示[存储在MYSQL数据库中的]这些配置文件
例如

I am developing a Website Where I need to register users, for that I develop a simple HTML Form and use PHP to send data in MYSQL Database, its working perfectly.

But now I need display those profiles[stored in MYSQL Database] one after another
e.g.

Photo                 Profile ID : 1
                      Name : MR. Abc XYz
                      Address : fghgf
                      Qualification: gjhgf


PHOTO                Profile ID :2
                     Name:  mno  pqo
                     :
                     :

PHOTO                Profile ID :3
                     Name:  bbbb hhhh
                     :
                     :


一页将包含6-7个人资料,然后一页将包含6-7至第二页,依此类推.

这是我的问题.
我知道不可能在CodeProject中提供针对此问题的代码,但是请您对我的全部知识或某些链接有所帮助.
请分享您的宝贵知识,并请帮助我.


One page will contain 6-7 profile and then next 6-7 to 2nd page and so on.

This is my problem.
I know its not possible to provide Code for this problem in CodeProject, but please some knowledge or some Links will be help full for me.
Please share your valuable knowledge and please help me.

推荐答案

根据我之前添加的评论,这里有很多事情要记住.

您需要知道:
(1)您想显示哪个页面"
(2)您希望在每个页面上显示多少个结果.

我选择在单行html表中显示每个用户的信息.第一个单元格包含图像,而第二个单元格包含文本信息.

我在字符串不需要解释的地方都使用了单引号-".每当字符串包含应由其值替换的php变量时,我都会使用双引号(使用单引号的速度更快,使用双引号的功能更快)-您应该考虑使用代码将图像输出为用双引号引起来的字符串.在这种情况下,字符串在单引号中包含一个解释值,这等同于在某些文本值周围包裹的单引号.

As per the comments I added earlier, there''s a number of things to keep in mind here.

You need to know:
(1) Which ''page'' you''d like to display
(2) How many results you''d like to display on each page.

I''ve chosen to display the information for each user in a single-row html table. The first cell contains an image, while the second cell contains text information.

I''ve used single quotes - '' wherever the string doesn''t need interpreting. I''ve used double-quotes " whenever the string contains a php variable that should be substitued by it''s value. (It''s faster to use single quotes, more functional to use double quotes) - You should consider the code that outputs the image as being wrapped in double-quotes. In this case the string contains an interpreted value inside of single quotes. This will equate to single quotes wrapped around some text value.


sql = " 选择一些填充限制
sql = "select some stuff limit


firstEntryToShow
firstEntryToShow


这篇关于HTML表单和PHP代码以创建配置文件查看器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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