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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:53:20+00:00 2026-05-17T21:53:20+00:00

When I attempt this query: $query = SELECT * FROM user_objects WHERE object_type =

  • 0

When I attempt this query:

$query = "SELECT * FROM user_objects WHERE object_type = 'TABLE'";

… I get an empty result set.

I have error_reporting() set to E_ALL, so I would assume that if it wasn’t connecting correctly, I would be getting an error… right?

I’m using a class given to me by a higher-up that they use for everything, so it SHOULD work.

If you want that code, let me know.

Thanks for any help you guys can give me :).

EDIT

Here’s the actual query function being executed:

/**
   * Query the database and store the result.  If the query is a select it returns the number of rows
   * fetched.
   *
   * Example:
   * <code>
   * $query = "SELECT * FROM tablename";
   * if($sql->query($query)){
   *  while($sql->fetch()){
   *      foreach($sql->results as $a=>$b){
   *        print "$a: $b<br>";
   *      }
   *      print "<hr>";
   *    }
   * }else{
   *    print "No results";
   * }
   *
   * </code>
   *
   * @param SQL*Plus query statement
   * @access public
   * @return int
   */
  function query($query_statement){
      if($_SESSION['TESTING']==1 && $_SESSION){
        $_SESSION['queries'][] = $query_statement;
        $_SESSION['Total_queries'] = count($_SESSION['queries']);
      }
    $parse_result = $this->execute($query_statement);
    if($parse_result == 0){
      return 0;
    }else{
      if($this->_queryresult){
        oci_free_statement($this->_queryresult);
      }
      $this->results=array();
      $this->_queryresult = $parse_result;
      $this->resultscount = oci_num_rows($this->_queryresult);
      if(!$this->resultscount)
        return 0;
      else
        return $this->resultscount;
    }
  }
  • 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-17T21:53:21+00:00Added an answer on May 17, 2026 at 9:53 pm

    You might want to make sure you display the errors, you can force one to check. You could also check the return value of the connect statement before you attempt to query.

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

Sidebar

Related Questions

This is an attempt to rephrase a question I asked earlier. I'd like to
This is a pretty straight forward attempt. I haven't been using python for too
THis is a followup to my previous question Font-dependent control positioning. It's an attempt
If I attempt to connect to Mac OS X 10.5 Leopard's built in vnc
In an attempt to add some parameter validation and correct usage semantics to our
When you attempt to declare an unsigned variable in C#.NET with a value outside
I've decided to attempt using the double submitted cookies technique to attempt to prevent
Has there been any attempt and creating a formalized method for organizing CSS code?
When I attempt to use the iterator form of parsing for a Spirit grammar
For some reason when I attempt to make a request to an Ajax.net web

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.