Tham khảo tài liệu ' how to do everything with php (phần 8)', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 334 How to Do Everything with PHP MySQL Created with the sole goal of colonizing every single planet in the known Universe and beyond Megalomaniacs Inc. hopes to quickly acquire a monopoly over the vast tracts of uncharted real estate in space. Speaking at a press conference Megalomaniacs Inc. CEO warned reporters that Megalomaniacs Inc. would take everything it could and then some . Peter Paul peter@ 200312-11 17 29 25 Query OK 1 row affected sec mysql INSERT INTO news id title content contact timestamp VALUES 2 Megalomaniacs Inc. Expands To Mars MARS -- As part of its business strategy of expand and swallow Megalomaniacs Inc. today announced that it had successfully sent a team of corporate raiders to Mars in an effort to persuade the inhabitants of that planet to surrender their planet for colonization. Megalomaniacs Inc. COO today said that the move was a friendly overture but that a failure to comply with the company s colonization plans would result in a swift and sure eviction of those little green guys . Tim Jr. tim@ 2004-08-30 12 13 48 Query OK 1 row affected sec If the previous commands are unfamiliar to you page back to Chapters 9 and 10 which explain them in greater detail. Listing and Displaying News Items You ll remember from the requirements discussion a couple of pages back that this development effort can broadly be split into two parts. One part consists of the scripts that retrieve the list of newest items from the database and display this list to the user. The other part consists of administrative tools that enable editors to manage this list enter new information and edit or delete existing information. Because the first part is simpler let s get that out of the way first. Two scripts are involved here which retrieves a list of the five newest entries in the database and which displays the full text for the selected story. TEAM Line CHAPTER 16 Sample Application News Publishing System 335 .