I have a download script written in PHP. My view file script links to the ids and then selects all the data that matches the ID.
The data is then used to download the ph
This happens because PHP send some information after you echo the data, the solution to this is to stop processing right after you echoed the data, for this add exit(); right after echo $data.
exit();
echo $data