i want to display data from mysql database in table form on the web page .
Ex. - If there are 100 entries in the database
then only 10 entries can be displayed
i should be able to use 'next' and ' previous' buttons to display consecutive data tables containing 10 entries .
Blacklister
0
Newbie Poster
Recommended Answers
Jump to PostDouble post and no code tags. I wonder what the the mods will think of that. But as the the solution - replace your while loop with the following.
while($noticia = mysql_fetch_assoc($result)) { if($bgcolor=='#f1f1f1'){$bgcolor='#ffffff';} else{$bgcolor='#f1f1f1';} echo "<tr >"; echo "<td align=left bgcolor=$bgcolor id='title'> <font face='Verdana' size='2'>".$noticia['id'].'</font></td>'; echo "<td …
All 4 Replies
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
Blacklister
0
Newbie Poster
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
tulalit
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.