I have a Export CSV button and everything was working fine on my localhost. But when I put my site online, the export_csv() function quit working...
I'm using ABSPATH in the filename and it echos the correct file and doesn't die when I call fopen.... seems to be in order... no errors show up when I $wpdb->show_errors();
I've tracked it down to the query function...
$query = "SELECT * FROM wp_jsadb";
$results = $wpdb->get_results( $query, ARRAY_A );
it is only passing "Array" back as a result...
So when I run my results through the foreach statement, I get nothing...but interestingly enough... the function also quits working when in that foreach statement... I'm lost...
Like I said, it worked fine on my localhost (WP 3.2.1)
So is there some different things going on in the older versions of wordpress that would effect how my function works? Something i'm missing here?
Any advice would be greatly appreciated