Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: 1. $pics_per_row = 5; 2. $x = 1; 3. $output = ""; 4. $total = mysql_num_rows($rs); 5. while($data = mysql_fetch_array($rs)){ 6. $rem = $x%$pics_per_row; 7. if($rem == $pics_per_row-1)$output .= "<tr>"; 8. $output .= "<td><img src=\"{$data['pic_url']}\" alt=\"{$data['pic_alt']}\" /></td>"; 9. if($x==$total && $rem != 0)$output .= "<td colspan=\"$rem\"></td>"; 10. if($rem == 0)$output … |
The End.