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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:59:02+00:00 2026-06-12T17:59:02+00:00

Having a problem with returning results from one particular table in a database. I

  • 0

Having a problem with returning results from one particular table in a database.

I have two tables:

a) repository_notes
b) repository_noteupdates (this one is giving the problem)

Here is an image showing there are some data in both tables using a simple select * query using Navicat.

enter image description here
http://imgur.com/GA6bn

However When I query repository_notes below:

print_r($this->db->get('repository_notes')->result_array()); 

It gives me the following result set:

Array
(
[0] => Array
    (
        [note_id] => 1
        [note_title] => This is my note
        [note_content] => Lorem ipsum dolor sit amet, consectetur adipiscing elit. In laoreet lobortis lacus, ac iaculis risus tristique nec. Curabitur porta gravida est, non tincidunt nunc porta nec. Nunc diam metus, feugiat non lobortis
        [note_userId] => 2302
        [note_pageno] => 12
        [note_deleted] => 0
        [note_bookid] => 12
    )

[1] => Array
    (
        [note_id] => 2
        [note_title] => This is my note
        [note_content] => Lorem ipsum dolor sit amet, consectetur adipiscing elit. In laoreet lobortis lacus, ac iaculis risus tristique nec. Curabitur porta gravida est, non tincidunt nunc porta nec. Nunc diam metus, feugiat non lobortis
        [note_userId] => 2302
        [note_pageno] => 12
        [note_deleted] => 0
        [note_bookid] => 12
    )

However when I run the query below:

print_r($this->db->get(‘repository_noteupdates’)->result_array());

I get no results:

 Array
    (
    ) 

Have any of you seen anything like this before and have a solution it would be appreciated.

  • 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-12T17:59:04+00:00Added an answer on June 12, 2026 at 5:59 pm

    So I found the solution for this.

    It seems that if i remove the name update from the table name, it seems to work. So i have called the table repository_noteupdata instead of repository_noteupdates
    and it is now working.

    Thanks guys for helping out. It is strange because I cannot find any documentation in codeigniter saying update is a reserved word for a table name.

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

Sidebar

Related Questions

Im having problem in my UIscrollView ,this is what I have done: Whenever a
I'm new to LINQ and am having a problem getting proper results from a
I am having a problem returning an ArrayList from my web service (Java). I
Hi everyone I'm having a problem. I have two SQL queries that are both
I'm having a little problem getting SQL Server returning the same results as Oracle
I have two processes that work with data in the same table. One process
I have two database tables: "places" and "translations". The translations of places names are
I am having problem to get a numerical value for this expression where I
I'm having problem with datagrid view. I have attached an image with the code
hello I am having problem related to https:// . I have used FB.getLoginStatus(function(response) function

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.