Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9212645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:34:22+00:00 2026-06-18T01:34:22+00:00

Please help me to view in PHP (I’m using the CodeIgniter framwork) something like

  • 0

Please help me to view in PHP (I’m using the CodeIgniter framwork) something like what’s shown in image 2.
From the database I select:

  • Categ 1 -> Item 1
  • Categ 1 -? Item 2
  • ……
  • Categ 2 -? Item 1
  • Categ x -> Item x

One Item can have many Categ.

     <div>
          <ul>
             <li>
                <div class="programe-tv_link">
                    <p>Categ 1</p> 
                   <dd> <a href="">>> Item 1</a></dd>
                   <dd> <a href="">>> Item 2</a></dd>
                   <dd> <a href="">>> Item 3</a></dd>
                   <dd> <a href="">>> Item 4</a></dd>
                   <dd> <a href="">>> Item 5</a></dd>
                </div>
                <div class="programe-tv_link">
                    <p>Categ 2</p>
                   <dd> <a href="">>> Item 1</a></dd>
                   <dd> <a href="">>> Item 6</a></dd>
                   <dd> <a href="">>> Item 7</a></dd>
                   <dd> <a href="">>> Item 8</a></dd>
                   <dd> <a href="">>> Item 9</a></dd>
                   <dd> <a href="">>> Item 2</a></dd>
                </div>
            </li>
            <li>
                <div class="programe-tv_link">
                    <p>Categ 5</p> 
                   <dd> <a href="">>> Item 1</a></dd>
                   <dd> <a href="">>> Item 2</a></dd>
                   <dd> <a href="">>> Item 3</a></dd>
                </div>
                <div class="programe-tv_link">
                    <p>Categ 4</p>
                   <dd> <a href="">>> Item 1</a></dd>
                </div>
            </li>
          </ul>
    </div>

I attach image with illustration. I make view like image 1 where all is selected good only in one <li> tag; I need something like IMAGE 2.
enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:34:23+00:00Added an answer on June 18, 2026 at 1:34 am

    My final solution is.

        <div id="programe-tv-slide" class="flexslider">
            <strong>Programe TV</strong>
            <div class="redLine"></div>
    
            <?php $cat_cnl = array(); 
                  $list = array(); 
                  $i=1;
                     foreach ($category_chaneels as $option) { 
                        $catname = $option['category_name'];
                        $chlname = $option['channel_name'];
    
                        $cat_cnl[$catname][$i] = $chlname;
                        $list[$i] = $catname;
                  $i++;
                     }; 
            ?>
            <?php 
                $rows = array_chunk($cat_cnl, 4, TRUE);
                foreach ($rows as $row) {  //var_dump($rows);
            ?>
    
              <ul class="slides">    
                <?php
                    echo ('<li>');
                    foreach ($row as $category => $channels) {
                        echo '<div class="programe-tv_link">'; 
                        echo '<p>' . $category . '</p>'; 
                            foreach ($channels as $channel) {
                                    echo '<dd><a href="">' . $channel . '</a></dd> '; 
                            };
                        echo '</div>'; 
                        };      
                    echo ('</li>'); 
                ?>
              </ul>
              <?php }; ?>
        </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Could you please help me to get image upload working on a view with
Can we add image together with text in a picker view? Anyone please help!
please help me arrange these 3 buttons horizontally like this photoshopped image: Please take
I am using codeigniter php framework. I am suffering from the problem that all
Please help! I'm on PHP. I have an url: ' http://example.com/articles/123a/view ', how do
Please help me to turn off user interaction. I have a custom view which
In my view i have ImageView.If i click ,it should open nextview. Please help
What should I do to perform the sorting in grid view? Please help
'view_act.php' file <?php $query = mysql_query('select * from activities'); $check=mysql_num_rows($query); if($check==0) { echo No
I write this from in Codeigniter as a form_view.php . <?php echo form_open('form'); ?>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.