mikebyrne Posted January 20, 2008 Share Posted January 20, 2008 I would like to put my dotted line after every record produced in the loop. At the minute I can put it at the start and the end. How can i place the code so it is displayed after every record? <?php // let's get some data include('adminconnect.php'); $sql = mysql_query("SELECT OrderNo, Orderdate, Dispatchdate, Custname, Trackno, Amount, Shippingmet FROM admin WHERE Ordercompleted = 1"); while( $row = mysql_fetch_array($sql) ) { // loop through and display ?> <tr align="left"> <td width="33"> </td> <td width="82"><a href="javascript:openWindow('popup_detail.html', 'NewWindow', 615, 600)" class="black"><?php echo $row['OrderNo'];?></a></td> <td width="61"><?php echo $row['Orderdate'];?></td> <td width="61"><?php echo $row['Dispatchdate'];?></td> <td width="230"><?php echo $row['Custname'];?></td> <td width="170"><?php echo $row['Trackno'];?></td> <td width="56" align="right"><?php echo $row['Amount'];?></td> <td width="21"> </td> <td width="136">test</td> </tr> <? } ?> </table> My html for the line is: <div class="clr"><!-- --></div> <div class="padTop11"><!-- --></div> <div class="clr"><!-- --></div> <div id="dottedIn"><!-- --></div> <div class="clr"><!-- --></div> Quote Link to comment https://forums.phpfreaks.com/topic/86915-html-code-within-a-php-loop/ Share on other sites More sharing options...
cooldude832 Posted January 20, 2008 Share Posted January 20, 2008 you can't if you are going to be doing it in a table for as of what I see they be placed in this imaginary space in the table but not in a table continaer Quote Link to comment https://forums.phpfreaks.com/topic/86915-html-code-within-a-php-loop/#findComment-444352 Share on other sites More sharing options...
mikebyrne Posted January 20, 2008 Author Share Posted January 20, 2008 Is there a way round it? Quote Link to comment https://forums.phpfreaks.com/topic/86915-html-code-within-a-php-loop/#findComment-444397 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.