Having Issue With $wpdb Class
-
I’m just trying to toy around with this global variable to see how it works. I placed this piece of code in my header.php file
<?php global $wpdb; $mylink = $wpdb->get_row("SELECT * FROM $wpdb->wp_bb_forums WHERE forum_id = 3", ARRAY_N); echo $mylink[0]; ?>
I’m not getting anything from it. What am I doing wrong?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Having Issue With $wpdb Class’ is closed to new replies.