4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 29, 2014, 11:59:02 AM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  General / Allgemeines
| |-+  Programming
| | |-+  Need help... PHP code
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
This topic has not yet been rated!
Author Topic: Need help... PHP code  (Read 1769 times)
MrAndrew
Sr. Member
****
Offline Offline

Posts: 301

Thank You
-Given: 9
-Receive: 12


View Profile WWW
« on: March 17, 2011, 12:43:21 PM »

Hello. Please help me with next... I`m not a programmer, very difficult for me  Very Happy

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  $thumbnails "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">\n";
  
  
$count 3;
  
$bgcounter 3;
  while (
$image_row $site_db->fetch_array($result)) {

    if (
$count == 3) {
      
$row_bg_number = ($bgcounter++ % == 0) ? 2;
      
$thumbnails .= "<tr class=\"imagerow".$row_bg_number."\">\n";
    }
    
$thumbnails .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n";
    
show_image($image_row);
    
$thumbnails .= $site_template->parse_template("mscomments_bit");
    
$thumbnails .= "\n</td>\n";
    
$count++;
    if (
$count == $config['image_cells']) {
      
$thumbnails .= "</tr>\n";

  
  
$thumbnails "</table>\n";

}
}

I need to show next:

<table.....>
<tr>
<td>3 thumbnails</td>
</tr>
<tr>
<td>3 thumbnails</td>
</tr>
.......
</table>

many thanks!
Logged

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.196 seconds with 19 queries.
Post your comments here