Codeigniter ActiveRecord gibt keine Ergebnisse für eine bestimmte Tabelle zurück [geschlossen]Php

PHP-Programmierer chatten hier
Anonymous
 Codeigniter ActiveRecord gibt keine Ergebnisse für eine bestimmte Tabelle zurück [geschlossen]

Post by Anonymous »

Ich habe ein Problem mit der Rückgabe von Ergebnissen aus einer bestimmten Tabelle in einer Datenbank.

Ich habe zwei Tabellen:

Code: Select all

a) repository_notes
b) repository_noteupdates (this one is giving the problem)
Hier ist ein Bild, das zeigt, dass einige Daten in beiden Tabellen vorhanden sind, indem eine einfache SELECT *-Abfrage mit Navicat verwendet wird.

Image
http://imgur.com/GA6bn

Wenn ich jedoch unten „repository_notes“ abfrage:

Code: Select all

print_r($this->db->get('repository_notes')->result_array());
Es gibt mir die folgende Ergebnismenge:

Code: Select all

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
)
Wenn ich jedoch die folgende Abfrage ausführe:

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

Ich erhalte keine Ergebnisse:

Code: Select all

 Array
(
)
Hat jemand von euch so etwas schon einmal gesehen und hätte eine Lösung, wäre er dankbar.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post