im new to php im currently working on my first site. i have created a table in database that contains news and title of the news. now on the form i want to display just two rows of that table, mean to say that the page must contain heading of the news then details of the news then another title of the news and again the news details.
how can i retrieve two records form the table on the same page?
help me
Moderator: General Moderators
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: help me
Code: Select all
SELECT * FROM `news` LIMIT 2mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.