Title: chiconerd's Replies | WordPress.org

---

# chiconerd

  [  ](https://wordpress.org/support/users/chiconerd/)

 *   [Profile](https://wordpress.org/support/users/chiconerd/)
 *   [Topics Started](https://wordpress.org/support/users/chiconerd/topics/)
 *   [Replies Created](https://wordpress.org/support/users/chiconerd/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/chiconerd/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/chiconerd/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/chiconerd/engagements/)
 *   [Favorites](https://wordpress.org/support/users/chiconerd/favorites/)

 Search replies:

## Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wp_get_attachment_image](https://wordpress.org/support/topic/wp_get_attachment_image/)
 *  Thread Starter [chiconerd](https://wordpress.org/support/users/chiconerd/)
 * (@chiconerd)
 * [17 years ago](https://wordpress.org/support/topic/wp_get_attachment_image/#post-1127555)
 * I am using the latest virsion 2.8.
    and that did not work, it says missing files.
   i went back and used the content to make sure the files are there, and they are.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Audio Player] Version 2.0 beta released](https://wordpress.org/support/topic/plugin-audio-player-version-20-beta-released/)
 *  [chiconerd](https://wordpress.org/support/users/chiconerd/)
 * (@chiconerd)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-audio-player-version-20-beta-released/page/28/#post-777094)
 * is there a way to have the player play all the audio in a directory?
    like i 
   already using a download manager to upload all my mp3, so i can to include the
   directory and play all the audio in that directory not a single file or specific
   ones becuase i have a lot of files.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [users permision.](https://wordpress.org/support/topic/users-permision/)
 *  Thread Starter [chiconerd](https://wordpress.org/support/users/chiconerd/)
 * (@chiconerd)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/users-permision/#post-978122)
 * Well once again i found a way around it, i just went inside the code and hard
   code it, to check if current user level is admin level if not than don’t display
   the edit media library but display the upload tab.]
    works fine :D..
 * this forum needs more helpers ill as much as i can come help people like me..
 * ill be back if i have other questions.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WPDB](https://wordpress.org/support/topic/wpdb/)
 *  Thread Starter [chiconerd](https://wordpress.org/support/users/chiconerd/)
 * (@chiconerd)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/wpdb/#post-977698)
 * well i found another way to do this in every page i create instead of using the
   new class. by using
 *     ```
       global $wpdb;
       ```
   
 * the code works.
 * still not sure why in the guide they don’t address this error.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WPDB](https://wordpress.org/support/topic/wpdb/)
 *  Thread Starter [chiconerd](https://wordpress.org/support/users/chiconerd/)
 * (@chiconerd)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/wpdb/#post-977695)
 * yeah the problem is not accessing the database, is running the code.
    the code
   wont run unless i create an instance of the class in every page i want to use
   the wpdb class.
 * as i explained before, in the documentation it says that automatically wordpress
   enable this functionally. but even if i try to use one example provided by wordpress
   i get this error.
 * _this the code wordpress provides_
 *     ```
       <?php
       $name = $wpdb->get_var("SELECT name FROM $wpdb->terms WHERE term_ID=1");
       echo $name;
   
       ?>
       ```
   
 * _this is the error it produces_
    `Fatal error: Call to a member function get_var()
   on a non-object in C:\sites\wordpress\wp-content\plugins\exec-php\includes\runtime.
   php(42) : eval()'d code on line 2`
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WPDB](https://wordpress.org/support/topic/wpdb/)
 *  Thread Starter [chiconerd](https://wordpress.org/support/users/chiconerd/)
 * (@chiconerd)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/wpdb/#post-977688)
 * nope just a normal query
    when i use this
 *     ```
       <?php
           $wpdb = $wpdb->get_results('SELECT * FROM costume_table');
       ?>
       ```
   
 * this will produce this error
 *     ```
       Fatal error: using a property of a non-object;
       ```
   
 * how ever if i do this
 *     ```
       <?php
           $wpdb = new wpdb('user','password','database','host');
           $wpdb = $wpdb->get_results('SELECT * FROM costume_table');
       ?>
       ```
   
 * and that is the problem i have to include the new class in every new page i make,
   i thought the class was included within wordpress, putting mysql info in every
   page does not sound safe. :S
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Using mysql?](https://wordpress.org/support/topic/using-mysql/)
 *  Thread Starter [chiconerd](https://wordpress.org/support/users/chiconerd/)
 * (@chiconerd)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/using-mysql/#post-977242)
 * wow can a guy get some help here?
 * i narrow down the problem to WPDB not being loaded into the new pages i made,
   the only way it will work is if i call a new class and specify the database ect..
   things that shouldn’t be on pages becuase of security risk.. any help? any one?
   anything? come on people..
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Using mysql?](https://wordpress.org/support/topic/using-mysql/)
 *  Thread Starter [chiconerd](https://wordpress.org/support/users/chiconerd/)
 * (@chiconerd)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/using-mysql/#post-977130)
 * hey i found out about WPDB but is not working for some reason, how do i configure
   it?
    when i try to call a function it tells me the fatal error.. i try to look
   around and found that wpdb had no db set up but i read in here that is sync with
   the whole blog whats going on?

Viewing 8 replies - 1 through 8 (of 8 total)