User Profile

Collapse

Profile Sidebar

Collapse
Emmetje
Emmetje
Last Activity: Feb 15 '13, 09:25 PM
Joined: Feb 11 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Emmetje
    replied to Echo database results in multiple table rows
    in PHP
    You did it!! Commented out line 9 and it works! Many, many thanks for this, you made my day!
    See more | Go to post

    Leave a comment:


  • Emmetje
    replied to Echo database results in multiple table rows
    in PHP
    Sure here it is:

    Code:
    $opties.='<b>'.$option['name'].':</b><br /><table><tr>';
    $cnt=0;
    foreach ($option['option_value'] as $option_value) { 
        if($cnt % 5 == 0 && $cnt > 1) 
            $opties .= '</tr><tr>';
        $opties .= '<td><img src="image/cache/'.$option_value['image'].'" /><br />'.$option_value['name'].'</td>';
    ...
    See more | Go to post

    Leave a comment:


  • Emmetje
    replied to Echo database results in multiple table rows
    in PHP
    Thanks for your answer. I tried to use some code snippets I've found on the internet but couldn't get anything to work. :( Could you help me out here? Thanks in advance!
    See more | Go to post

    Leave a comment:


  • Emmetje
    started a topic Echo database results in multiple table rows
    in PHP

    Echo database results in multiple table rows

    I've a piece of code with outputs database results in a table. This is working fine but I want to have max 5 cols and start a new row after that. Would be great if someone could help me out. Many thanks in advance!

    Code:
    $opties.='<b>'.$option['name'].':</b><br /><table><tr>';
    
          foreach ($option['option_value'] as $option_value) { 
    
            $opties.= '<td><img src="image/cache/'.$option_value['image'].'"
    ...
    See more | Go to post
    Last edited by Meetee; Feb 11 '13, 10:06 AM. Reason: Use code tags [/CODE] around code
No activity results to display
Show More
Working...