A PHP Error was encountered

Severity: Warning

Message: mysql_errno(): supplied argument is not a valid MySQL-Link resource

Filename: mysql/mysql_driver.php

Line Number: 362

Call stack:

  1. /var/local/www/skyraise/lib/codeigniter/database/drivers/mysql/mysql_driver.php:362 in mysql_errno
  2. /var/local/www/skyraise/lib/codeigniter/database/DB_driver.php:289 in CI_DB_mysql_driver->_error_number
  3. /var/local/www/skyraise/lib/codeigniter/database/DB_active_rec.php:504 in CI_DB_driver->query
  4. /var/local/www/skyraise/export/codeigniter-app/models/categories.php:20 in CI_DB_active_record->get
  5. /var/local/www/skyraise/lib/codeigniter/libraries/Loader.php:166 in Categories->__construct
  6. /var/local/www/skyraise/export/codeigniter-app/controllers/welcome.php:10 in CI_Loader->model
  7. : in Welcome->index
  8. /var/local/www/skyraise/lib/codeigniter/codeigniter/CodeIgniter.php:216 in call_user_func_array
  9. /var/local/www/skyraise/export/doc-root/index.php:94 in require_once

A PHP Error was encountered

Severity: Warning

Message: mysql_error(): supplied argument is not a valid MySQL-Link resource

Filename: mysql/mysql_driver.php

Line Number: 349

Call stack:

  1. /var/local/www/skyraise/lib/codeigniter/database/drivers/mysql/mysql_driver.php:349 in mysql_error
  2. /var/local/www/skyraise/lib/codeigniter/database/DB_driver.php:289 in CI_DB_mysql_driver->_error_message
  3. /var/local/www/skyraise/lib/codeigniter/database/DB_active_rec.php:504 in CI_DB_driver->query
  4. /var/local/www/skyraise/export/codeigniter-app/models/categories.php:20 in CI_DB_active_record->get
  5. /var/local/www/skyraise/lib/codeigniter/libraries/Loader.php:166 in Categories->__construct
  6. /var/local/www/skyraise/export/codeigniter-app/controllers/welcome.php:10 in CI_Loader->model
  7. : in Welcome->index
  8. /var/local/www/skyraise/lib/codeigniter/codeigniter/CodeIgniter.php:216 in call_user_func_array
  9. /var/local/www/skyraise/export/doc-root/index.php:94 in require_once


Fatal error: Uncaught exception 'DBException' in /var/local/www/skyraise/lib/codeigniter/database/DB_driver.php:289 Stack trace: #0 /var/local/www/skyraise/lib/codeigniter/database/DB_active_rec.php(504): CI_DB_driver->query('SELECT id, pare...') #1 /var/local/www/skyraise/export/codeigniter-app/models/categories.php(20): CI_DB_active_record->get() #2 /var/local/www/skyraise/lib/codeigniter/libraries/Loader.php(166): Categories->__construct() #3 /var/local/www/skyraise/export/codeigniter-app/controllers/welcome.php(10): CI_Loader->model('categories') #4 [internal function]: Welcome->index() #5 /var/local/www/skyraise/lib/codeigniter/codeigniter/CodeIgniter.php(216): call_user_func_array(Array, Array) #6 /var/local/www/skyraise/export/doc-root/index.php(94): require_once('/var/local/www/...') #7 {main} sql: SELECT id, parent_cause_category_id, name FROM cause_category thrown in /var/local/www/skyraise/lib/codeigniter/database/DB_driver.php on line 289