I can output the CSV perfectly when $values = mysql_query("SELECT * FROM ".$table."");
However when I try to select specific columns I have as for example in
$values = mysql_query("SELECT email, status FROM ".$table."");
I get the following error
Notice: Undefined offset: 1 (goes until N-1 fields I have) Warning: Cannot modify header information - headers already sent by
Could you guys advise please?