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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:30:30+00:00 2026-05-25T21:30:30+00:00

Given a file called index.php which contains: $db = NewADOConnection($db_dsn); if (!$db) die(Connection failed);

  • 0

Given a file called index.php which contains:

$db = NewADOConnection($db_dsn);
if (!$db) die("Connection failed");   

$arrpage = $db->GetArray("SELECT * FROM somewhere");

include("functions.inc.php");

details("SELECT * FROM somewherelse");

The $arrpage contains the expect information

Then in the functions.inc.php file:

function details($query) {
  global $db; //should check to make sure it exists

  $options_array = $db->GetArray($query);

The $options_array is empty even though it should contain data.
var_dump($db) shows the DB object is all there. var_dump($options_array) is blank.

  • PHP 5.3.4
  • MySQL 14.14
  • ADODB 5.14
  • 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-25T21:30:31+00:00Added an answer on May 25, 2026 at 9:30 pm

    Well after a lot of troubleshooting, all I needed to do was get up, have a pint of good beer and come back to it another time.

    The short of it is: the system uses caching and upon close inspection of my error logs I noticed that the the cache files weren’t being written to the cache folder because of folder permission issues.

    I therefore fixed the folder permissions and now that the cache files can be saved, the DB query has something to refer to.

    Thanks for the help anyways, I do appreciate it.

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

Sidebar

Related Questions

I pasted the code given in this link to a file called md5.js. http://www.webtoolkit.info/javascript-md5.html
I wrote this script which counts occurrences of particular pattern in a given file.
Simply put, I want to override ProcessController which is in the Mage/Index/controllers/Admninhtml/ProcessController.php. I know
I have a new MVC3 project with one Controller called PublicController.cs which contains 4
I have this layout file called menuAdmin. I wish to, each time a given
Given that there is a file called copystuff in the Resources folder in a
I have a javascript file called pendingAjaxCallsCounter.js with a variable var pendingAjaxCalls which is
Given file names like these: /the/path/foo.txt bar.txt I hope to get: foo bar Why
I have to search a given file name (let say Keyword) in a directory
i want to find the mime-type for a given file extension on an IIS

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.