problem connecting with the $wpdb
-
am having difficulty in connecting to my db using $wpdb. having tried a lot of permutations, read thro the codex and forums and external sources and found none that solve the problem.
i am using a local server (as you see a bitnami lamp set up). there are 6 databases i can view with phpmyadmin. i use only 2.
the table i want to access is in a db called bitnami_wordpress in a table called wptable. there are 3 columns. no query using select has returned anything.
in addition i am using the insert_php plugin to handle the php. (the plugin works fine for other php elements).
the code below is just the final effort found. can anyone resolve this connection issue?
$wpdb->select('bitnami_wordpress'); $myrows = $wpdb->get_results( "SELECT col1 FROM wptable" );
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘problem connecting with the $wpdb’ is closed to new replies.