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

  • SEARCH
  • Home
  • 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 6226883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:06:52+00:00 2026-05-24T09:06:52+00:00

This is output from a mysql export function. Problem is I don’t know the

  • 0

This is output from a mysql export function. Problem is I don’t know the best way to put this into Access. From there I can write PHP to parse it.

<?php
/**
 * Export to PHP Array plugin for PHPMyAdmin
 * @author Geoffray Warnants
 * @version 0.2b
 */

//
// Database "nhbdir_newdb3"
//

// nhbdir_newdb3.jos_banner
$jos_banner = array(
  array('bid'=>1,'cid'=>1,'type'=>'banner','name'=>'OSM 1','alias'=>'osm-1','imptotal'=>0,'impmade'=>44,'clicks'=>0,'imageurl'=>'osmbanner1.png','clickurl'=>'http://www.opensourcematters.org','date'=>'2004-07-07 15:31:29','showBanner'=>1,'checked_out'=>0,'checked_out_time'=>'0000-00-00 00:00:00','editor'=>'','custombannercode'=>'','catid'=>13,'description'=>'','sticky'=>0,'ordering'=>1,'publish_up'=>'0000-00-00 00:00:00','publish_down'=>'0000-00-00 00:00:00','tags'=>'','params'=>''),
  array('bid'=>2,'cid'=>1,'type'=>'banner','name'=>'OSM 2','alias'=>'osm-2','imptotal'=>0,'impmade'=>50,'clicks'=>0,'imageurl'=>'osmbanner2.png','clickurl'=>'http://www.opensourcematters.org','date'=>'2004-07-07 15:31:29','showBanner'=>1,'checked_out'=>0,'checked_out_time'=>'0000-00-00 00:00:00','editor'=>'','custombannercode'=>'','catid'=>13,'description'=>'','sticky'=>0,'ordering'=>2,'publish_up'=>'0000-00-00 00:00:00','publish_down'=>'0000-00-00 00:00:00','tags'=>'','params'=>''),
  array('bid'=>3,'cid'=>1,'type'=>'','name'=>'Joomla!','alias'=>'joomla','imptotal'=>0,'impmade'=>279,'clicks'=>0,'imageurl'=>'','clickurl'=>'http://www.joomla.org','date'=>'2006-05-29 14:21:28','showBanner'=>1,'checked_out'=>0,'checked_out_time'=>'0000-00-00 00:00:00','editor'=>'','custombannercode'=>'<a href=\"{CLICKURL}\" target=\"_blank\">{NAME}</a>
<br/>
Joomla! The most popular and widely used Open Source CMS Project in the world.','catid'=>14,'description'=>'','sticky'=>0,'ordering'=>1,'publish_up'=>'0000-00-00 00:00:00','publish_down'=>'0000-00-00 00:00:00','tags'=>'','params'=>''),
  array('bid'=>4,'cid'=>1,'type'=>'','name'=>'JoomlaCode','alias'=>'joomlacode','imptotal'=>0,'impmade'=>279,'clicks'=>0,'imageurl'=>'','clickurl'=>'http://joomlacode.org','date'=>'2006-05-29 14:19:26','showBanner'=>1,'checked_out'=>0,'checked_out_time'=>'0000-00-00 00:00:00','editor'=>'','custombannercode'=>'<a href=\"{CLICKURL}\" target=\"_blank\">{NAME}</a>
<br/>
JoomlaCode, development and distribution made easy.','catid'=>14,'description'=>'','sticky'=>0,'ordering'=>2,'publish_up'=>'0000-00-00 00:00:00','publish_down'=>'0000-00-00 00:00:00','tags'=>'','params'=>''),
  array('bid'=>5,'cid'=>1,'type'=>'','name'=>'Joomla! Extensions','alias'=>'joomla-extensions','imptotal'=>0,'impmade'=>274,'clicks'=>0,'imageurl'=>'','clickurl'=>'http://extensions.joomla.org','date'=>'2006-05-29 14:23:21','showBanner'=>1,'checked_out'=>0,'checked_out_time'=>'0000-00-00 00:00:00','editor'=>'','custombannercode'=>'<a href=\"{CLICKURL}\" target=\"_blank\">{NAME}</a>
<br/>
Joomla! Components, Modules, Plugins and Languages by the bucket load.','catid'=>14,'description'=>'','sticky'=>0,'ordering'=>3,'publish_up'=>'0000-00-00 00:00:00','publish_down'=>'0000-00-00 00:00:00','tags'=>'','params'=>''),
  array('bid'=>6,'cid'=>1,'type'=>'','name'=>'Joomla! Shop','alias'=>'joomla-shop','imptotal'=>0,'impmade'=>274,'clicks'=>0,'imageurl'=>'','clickurl'=>'http://shop.joomla.org','date'=>'2006-05-29 14:23:21','showBanner'=>1,'checked_out'=>0,'checked_out_time'=>'0000-00-00 00:00:00','editor'=>'','custombannercode'=>'<a href=\"{CLICKURL}\" target=\"_blank\">{NAME}</a>
<br/>
For all your Joomla! merchandise.','catid'=>14,'description'=>'','sticky'=>0,'ordering'=>4,'publish_up'=>'0000-00-00 00:00:00','publish_down'=>'0000-00-00 00:00:00','tags'=>'','params'=>''),
  array('bid'=>7,'cid'=>1,'type'=>'','name'=>'Joomla! Promo Shop','alias'=>'joomla-promo-shop','imptotal'=>0,'impmade'=>50,'clicks'=>1,'imageurl'=>'shop-ad.jpg','clickurl'=>'http://shop.joomla.org','date'=>'2007-09-19 17:26:24','showBanner'=>1,'checked_out'=>0,'checked_out_time'=>'0000-00-00 00:00:00','editor'=>'','custombannercode'=>'','catid'=>33,'description'=>'','sticky'=>0,'ordering'=>3,'publish_up'=>'0000-00-00 00:00:00','publish_down'=>'0000-00-00 00:00:00','tags'=>'','params'=>''),
  array('bid'=>8,'cid'=>1,'type'=>'','name'=>'Joomla! Promo Books','alias'=>'joomla-promo-books','imptotal'=>0,'impmade'=>57,'clicks'=>0,'imageurl'=>'shop-ad-books.jpg','clickurl'=>'http://shop.joomla.org/index.php?option=com_wrapper&Itemid=8','date'=>'2007-09-19 17:28:01','showBanner'=>1,'checked_out'=>0,'checked_out_time'=>'0000-00-00 00:00:00','editor'=>'','custombannercode'=>'','catid'=>33,'description'=>'','sticky'=>0,'ordering'=>4,'publish_up'=>'0000-00-00 00:00:00','publish_down'=>'0000-00-00 00:00:00','tags'=>'','params'=>'')
);
  • 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-24T09:06:53+00:00Added an answer on May 24, 2026 at 9:06 am

    This is a bit rough, but you can save a file as a CSV file and then import it into Excel, copy it over to your clipboard and paste it into Access:

    /**
     * save array as CSV file, first line will be keys as
     * field specifier
     *
     * @param array $data
     * @param string $filename
     */
    function array_csv_save(array $data, $filename) {
        $handle = fopen($filename, 'w');
        $names = array_keys($data[0]);
        fputcsv($handle, $names);
        foreach($data as $fields) {
            fputcsv($handle, $fields);
        }
        fclose($handle);
    }
    
    $data = $jos_banner;
    $columns = array_keys($data[0]);
    array_unshift($data, $columns);
    array_csv_save($data, $filename);
    

    Specify $filename to save your data.

    The other alternative is to open a (odbc?) based database connection to your Access database and insert your values. But I’m not fluent with that, so can’t provide any useful code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What's the most efficient way to convert the output of this function from a
I don't know the best way to title this question but am trying to
I'm using following code but cannot return data from MySQL. This is the output:
I'm using following code but cannot return data from MySQL. This is the output:
I am trying to debug a segfault, and I have this output from gdb:
I have different php output in jQuery-based tabs. This output is formed from database
How can you get 1 as an output from #2? #1 I ran this
Basically, this question with a difference... Is it possible to capture print output from
So I call this PHP script from the command line: /usr/bin/php /var/www/bims/index.php projects/output and
is there any chance of getting the output from a MySQL query directly to

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.