Table of Contents
回复讨论(解决方案)
Home Backend Development PHP Tutorial php论坛代码疑惑,关乎我是否继续编程的大事!各位帮帮忙

php论坛代码疑惑,关乎我是否继续编程的大事!各位帮帮忙

Jun 23, 2016 pm 02:19 PM

我想学习一个功能,就是网上诸多新闻里,有一个我来说两句的功能,就是有一个论题,很多人进行回复,对某个人的回复,其他人也可以对这个回复进行评论。(跟CSDN里的论坛代码相似)

因为没做过,所以一点方向感都没有,具体想学习如下几个地方

1.前端代码的实现,比如对某个议题,对每个登陆网站的人留一个回复框,旁边有个+号按钮,代表可以继续发表新的评论(隐约记得要用jquery实现)

2.前端代码实现好之后,如何写相对应的php代码.

3.数据库代码怎么写?表怎么建比较好

针对如上三个问题一直是我的心病,因为堵在这里,所以php学习进度一直停了两年有余,网上也没个示例代码

望各位朋友指点指点,这关乎我是否继续做开发的一件大事! 谢谢了!


回复讨论(解决方案)

建议你转行吧。

自己的路可不是别人给你铺的

帮帮忙吧,就这个功能不会,总不能遇到不会的都放弃吧!!!

看到你的问题,吓尿了,两年了还没突破啊

你这问题貌似是好多入门教程里面的例子,PHP留言本。找不到例子?随便贴一个吧
http://down.chinaz.com/class/52_1.htm

其他还有很多开源的php程序都有这个功能,动动手找找吧

前端就是交互,PHP只负责服务器上数据的生成。

我想学习一个功能,就是网上诸多新闻里,有一个我来说两句的功能,就是有一个论题,很多人进行回复,对某个人的回复,其他人也可以对这个回复进行评论。(跟CSDN里的论坛代码相似)

因为没做过,所以一点方向感都没有,具体想学习如下几个地方

1.前端代码的实现,比如对某个议题,对每个登陆网站的人留一个回复框,旁边有个+号按钮,代表可以继续发表新的评论(隐约记得要用jquery实现)

2.前端代码实现好之后,如何写相对应的php代码.

3.数据库代码怎么写?表怎么建比较好

针对如上三个问题一直是我的心病,因为堵在这里,所以php学习进度一直停了两年有余,网上也没个示例代码

望各位朋友指点指点,这关乎我是否继续做开发的一件大事! 谢谢了!

从这三个问题隐约可以看出,你似乎是很新的新手。
个人有这么几点看法:
1.真的回答你这个问题,基本上是把Php和MySQL的全套内容和你讲一遍;
2.似乎这里大家都在问一些具体的问题,这个比较受到大家欢迎,而且你一言我一语的讨论,最终基本都能解决;
3.我的建议是你搜一些资料,先学起来,再从最简单的demo开始练起,这才是正道。

想要吃PHP这晚饭,还是往这个方向发展吧,不要踟蹰。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Explain the concept of late static binding in PHP. Explain the concept of late static binding in PHP. Mar 21, 2025 pm 01:33 PM

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

Framework Security Features: Protecting against vulnerabilities. Framework Security Features: Protecting against vulnerabilities. Mar 28, 2025 pm 05:11 PM

Article discusses essential security features in frameworks to protect against vulnerabilities, including input validation, authentication, and regular updates.

Customizing/Extending Frameworks: How to add custom functionality. Customizing/Extending Frameworks: How to add custom functionality. Mar 28, 2025 pm 05:12 PM

The article discusses adding custom functionality to frameworks, focusing on understanding architecture, identifying extension points, and best practices for integration and debugging.

How to send a POST request containing JSON data using PHP's cURL library? How to send a POST request containing JSON data using PHP's cURL library? Apr 01, 2025 pm 03:12 PM

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...

Describe the SOLID principles and how they apply to PHP development. Describe the SOLID principles and how they apply to PHP development. Apr 03, 2025 am 12:04 AM

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

What exactly is the non-blocking feature of ReactPHP? How to handle its blocking I/O operations? What exactly is the non-blocking feature of ReactPHP? How to handle its blocking I/O operations? Apr 01, 2025 pm 03:09 PM

An official introduction to the non-blocking feature of ReactPHP in-depth interpretation of ReactPHP's non-blocking feature has aroused many developers' questions: "ReactPHPisnon-blockingbydefault...

See all articles