Log in

View Full Version : Insert mysql data into include



bjf98
08-06-2008, 01:48 PM
Hi. I am trying to insert mysql into include. Is this possible?
Current Code:


function wp_head_intercept(){
global $wpdb;
$result = mysql_query("SELECT * FROM wordpress_options WHERE option_name='sl_location'") or die(mysql_error());
$row = mysql_fetch_array( $result );
include "{$row['option_value']}";
}

I am writing a wordpress plugin :D