TechSpott - Computer and technology forums

Go Back   TechSpott - Computer and technology forums > Webmasters > Programming > PHP
PHP The most widely used server-side programming language for web applications.

Reply
 
Thread Tools Display Modes
Old April 28th, 2010, 05:13 AM   #1 (permalink)
Sohail
Guest
 
Posts: n/a
Default how to add "Serial Number" PHP Code here with repeat region,?

<?php
mysql_select_db($database_NConn, $NConn);
$query_rsAchievements = "SELECT * FROM studies_achievement WHERE cat = '1' ORDER BY dataId DESC";
$rsAchievements = mysql_query($query_rsAchievements, $NConn) or die(mysql_error());
$row_rsAchievements = mysql_fetch_assoc($rsAchievements);
$totalRows_rsAchievements = mysql_num_rows($rsAchievements);
?>
<table width="100%" cellspacing="0;" class="sortable">
<thead>
<tr><th width="82" class="Headingss">S No.</th>
<th width="567" class="Headingss">Title</th>
<th width="273" class="Headingss">Author</th>
<th width="156" class="Headingss">Year</th>
</tr>
</thead>
原帖地å€: TechSpott - Computer and technology forums http://www.techspott.com//showthread.php?p=10974
<tbody><? for ($rows=0;$rows<$totalRows_rsAchievements;$rows++) {?>
<tr>
<td class="copyright">Here i need Serial Numer repeate region code </td>
<td class="copyright"><a href="islamabadPaper_Detail.php?dataId=<? echo mysql_result($rsAchievements,$rows,'dataId')?>"><? echo mysql_result($rsAchievements,$rows,'title')?></a><a href="islamabadPaper_Detail.php?dataId=<? echo mysql_result($rsAchievements,$rows,'dataId')?>"></a></td>
<td class="copyright"><a href="islamabadPaper_Detail.php?dataId=<? echo mysql_result($rsAchievements,$rows,'dataId')?>"><? echo mysql_result($rsAchievements,$rows,'author')?></a><a href="islamabadPaper_Detail.php?dataId=<? echo mysql_result($rsAchievements,$rows,'dataId')?>"></a></td>
<td class="copyright"><a href="islamabadPaper_Detail.php?dataId=<? echo mysql_result($rsAchievements,$rows,'dataId')?>"><? echo mysql_result($rsAchievements,$rows,'year')?></a></td>
</tr>
<? } ?>
  Reply With Quote Share with Facebook
Reply

Bookmarks

Tags
add, code, php, region, repeat, serial number


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's wrong with this PHP code? ?pathtotake? PHP 0 April 23rd, 2010 01:25 PM
security content of QuickTime 7.6.6 News Bot News 0 April 16th, 2010 04:32 AM
how to write PHP code for the validate usernname & password? please help? Ahmed S PHP 0 April 4th, 2010 02:55 AM
How can i setup a directory with a specific code in it on PHP.? Sal PHP 0 April 4th, 2010 02:50 AM
How do I use php code from a different domain? nutritionmaster PHP 0 April 2nd, 2010 01:52 AM

 
Forum Stats
Members: 14,366
Threads: 20,373
Posts: 27,837
Total Online: 33

Newest Member: jveffmtcgab

Latest Threads

Advertisements

Support our advertisers!

Amazon
Sears
Macys
1800flowers.com
Drugstore.com


Carbonite Online-Backups
Tiger Direct
Tech Depot
Buy.com
Office Depot
Fatcow
HostGator


TripsNow.us
Marriott
Expedia
CheapTickets.com
OneTravel
Hotwire

Are you a Fan?

Share this on Facebook

Tag Cloud

Partner Links


Contact Us - Home - Archive - Privacy Statement - Top - Copyright © 2009-2010, TechSpott - All times are GMT -4. Time is 05:50 PM

Powered by vBulletin® Copyright © Jelsoft Enterprises Ltd. :: SEO by vBSEO