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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:27:14+00:00 2026-06-13T13:27:14+00:00

Why this database query failing? in my CentOS. Error/Exception: Notice: Undefined variable: table in

  • 0

Why this database query failing? in my CentOS.

Error/Exception:

"Notice: Undefined variable: table in /var/www/html/-manager/application/controllers/IndexController.php on line 37 Fatal error: Call to a member function getAdapter() on a non-object in /var/www/html/-manager/application/controllers/IndexController.php on line 37 Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0

Disk space?:

$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_demo-lv_root
                       50G   47G     0 100% /
tmpfs                 3.9G     0  3.9G   0% /dev/shm
/dev/sda1             485M   47M  413M  11% /boot
/dev/mapper/vg_demo-lv_home
                      170G  200M  161G   1% /home

Calling as:

    $rows = new Application_Model_Clients();  // PASS
    $dbsession = $rows->give_sessions("test"); // FAILS

Stocked as:

mysql> select username,password from sh_operator;
+----------+----------+
| username | password |
+----------+----------+
| test     | 1234567  |
+----------+----------+
1 rows in set (0.00 sec)

mysql> 


<?php

class Application_Model_Clients extends Zend_Db_Table {

  protected $_name = 'web145-mydb.sh_operator';

  public function addRecord($post) {
    $encrypted = mt_rand();
    $value = array(
        'email'       => $post->email,
    );
    return $this->insert($value);
  }

  public function search($zip) {
    $result = $this->fetchRow("zip =" . $zip);
    return $result->toArray();
  }

  public function give_sessions($input) {
    Zend_Debug::dump($input); // PASS test
    echo "alive 0 "; // PASS
    $result = $this->fetchRow("username ='" . $input . "'");
    echo "alive 1 "; // fails
    exit;
    return $result->toArray();
  }

}

?>
  • 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-13T13:27:15+00:00Added an answer on June 13, 2026 at 1:27 pm

    For a database name with “-“, you may need to use backticks to assign it to the adaptor correctly.

       protected $_name = '`web145-mydb`.sh_operator';
    

    The exception shows that you do not have disk space left. Clear up some space, that should solve the issue.

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

Sidebar

Related Questions

This would be an example of database table: PHP script should limit query result
I have a problem. I want to use a LINQ query against this database:
I have created my database by this sql query: (CREATE DATABASE + DBName +
I am trying to return voice messages from a database using this query :
my android aplication start with query to database, but on start it return this
This code is for my follower system. I want to query the database to
After running this query statement with my database: select * from articles where content
I ran this query in my database : SELECT DB_NAME(dbid) as DBName, COUNT(dbid) as
I ran this sql query in my database: update payments set method = 'paysafecard'
i am executing this sql query to update the database $sql_select = UPDATE `database1`.`media`

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.