Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter chiconerd

    (@chiconerd)

    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.

    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
    In reply to: users permision.
    Thread Starter chiconerd

    (@chiconerd)

    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
    In reply to: WPDB
    Thread Starter chiconerd

    (@chiconerd)

    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
    In reply to: WPDB
    Thread Starter chiconerd

    (@chiconerd)

    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
    In reply to: WPDB
    Thread Starter chiconerd

    (@chiconerd)

    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
    In reply to: Using mysql?
    Thread Starter chiconerd

    (@chiconerd)

    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
    In reply to: Using mysql?
    Thread Starter chiconerd

    (@chiconerd)

    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)