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 6473385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:27:36+00:00 2026-05-25T06:27:36+00:00

I am using code igniter and I am trying to send multiple arrays to

  • 0

I am using code igniter and I am trying to send multiple arrays to view

this is multiple array in controller I pass this array to view

$data=Array ( 
  [email] => Array ( 
    [abv] => Array ( 
      [name] => Abv 
      [version] => 1.0.7 
      [description] => Get the contacts from a Abv account
      [base_version] => 1.8.4 
      [type] => email 
      [check_url] => http://m.abv.bg 
      [requirement] => email 
      [allowed_domains] => Array ( 
         [0] => /(abv.bg)/i
         [1] => /(gyuvetch.bg)/i
         [2] => /(gbg.bg)/i
      )
      [imported_details] => Array ( 
        [0] => first_name
        [1] => email_1
      ) 
    ) 
  )
)
$this->load->view('view', $data)

This is view,

<?php

  foreach($data as $type=>$providers) {
    if ($type == 'email')
      "<optgroup label='email group'>"
    else
      "<optgroup label='social group'>";
    foreach ($providers as $provider=>$details)
      "<option value='{$provider}'".($_POST['provider_box']==$provider?' selected':'').">{$details['name']}</option>";
    "</optgroup>";
  }

?> 

It dose print out anything.
can you explain why it dosent work?

  • 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-05-25T06:27:37+00:00Added an answer on May 25, 2026 at 6:27 am

    You’re missing the echos, that might explain why nothing prints out. For example:

    echo "<optgroup label='email group'>";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using code igniter and trying to write tests for the data returned by
I'm trying to send an email using codeigniter, and would like the message to
I'm trying to send a file to the user using xsendfile within the code
I'm trying to send an e-mail with Codeigniter like this: $this->load->library('email'); $this->email->from(myemail@email.com); $this->email->reply_to(myemail@email.com); $this->email->to(myemail@email.com);
I'm sending out an email using CodeIgniter 's built in library. All I'm trying
I am trying to implement Twitter's OAuth into my Code Igniter web application at
Using CodeIgniter, I am trying to place several images onto my view page as
I am using Codeigniter and I am trying to upload multiple files into a
I'm using Codeigniter..and I'm new to this. What I'm trying to do is to
I'm using PHP/CURL to automate calls between 2 closely tied code igniter. Code igniter

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.