WordPress.org

Support

Support » Plugins and Hacks » Theme My Login cannot read my query?

Theme My Login cannot read my query?

Viewing 1 replies (of 1 total)
  • I have found the problem!

    Apparently my server won’t allow direct access to an array like $wpdb->get_results('SELECT value FROM wp_syslookup WHERE code = "'.get_post_meta( $_POST['id'], 'main_addr_country_code', true).'"')[0]->value

    It needs proper handling. So, this works well:

    $query = 'SELECT value FROM wp_syslookup WHERE code = "'.get_post_meta( $_POST['id'], 'main_addr_country_code', true).'"';
    	$result = $wpdb->get_results( $query );
    	foreach($result as $r){
    		$org_country_str = $r->value;
    	}

    Anyways, again, just wanna say thank you to Jeff Farthing, for this awesome plugin. It made my life easier. God bless you man! 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Theme My Login cannot read my query?’ is closed to new replies.