954,580 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

fetching a db record through mysql database problem

Hello guys,

i have a problem with my fetching records, i need to put each photo inside a cell , now that has been done okay

the problem is i need to put 5 photos each row , now i have 6 in a row , i tried to use for , but i mess it up, did not know where should i put it , what i need is to put 5 photos each row , when the 5 is filled , the code start to fetch other photos in a new row.

<table width="%" border="1" bordercolor="#F7F7F7" align="center" cellspacing="10" cellpadding="5">
  
       
       <tr>
       
       
       <?
	   
	  while($info = mysql_fetch_array( $data  )) 
 {  
 
 ?>
	   	 
        <td width=125 height=125 ><img width=125 height=125 src=images/<? echo ($info['photo']); ?>></td>
        
        
	 <?    } ?>
      </tr>
TAGEEKS
Newbie Poster
1 post since Apr 2008
Reputation Points: 10
Solved Threads: 0
 
pritaeas
Posting Expert
Moderator
5,483 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: