help me

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
shahidislam1
Forum Newbie
Posts: 2
Joined: Tue Dec 29, 2009 10:40 am

help me

Post by shahidislam1 »

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?
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: help me

Post by AbraCadaver »

Code: Select all

SELECT * FROM `news` LIMIT 2
mysql_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.
Post Reply