Twitter is the most popular Internet service in the world. It provides users with micro-blog services, and the interface is concise and beautiful. In this article, we will use jqueyr to create a twitter-like site. You will learn some jquery skills and how to use PHP and mysql together. You will like it. JQueryTwitter
Twitter is the most popular Internet service in the world. It provides users with micro-blog services, and the interface is concise and beautiful. In this article, we will use jqueyr to create a twitter-like site. You will learn some jquery skills and how to use PHP and mysql together. You will like it.
Author: jigoufei
Guofei Ji is a software engineer in Qingdao, China and works for Alcatel-Lucent. He is interested in jquery, PHP and other web design technologies.
Get Source: http://media.sitejerk.com/wp-content/uploads/2009/10/533_CODE.zip
Introduction
Through twitter, users can publish what they are doing at any time, and twitter will display this information in a timely manner. Thus, every friend can know what you are doing at the same time. The twitter homepage is as follows:
In this tutorial, we will implement a twitter-like interface and use PHP to implement the information publishing function. The data will be saved to the mysql database.
Step 1: interface layout
The interface layout is very similar to twitter.com. In this example, only the message text box and message display area are displayed, as shown in. The html code is as follows:
Reference content is as follows: JQuery Tutorial: Twitter-Like Site by Ji Guofei This area will be used to display the messages. This is just a example to learn jQuery. |
Save the code as index. php. we will add some PHP code to the file to display the message.