I have the following PHP Code
#The facebook message
$fh = fopen('comments.txt', 'r') or die('Unable to open data1.txt');
while($line = fgetcsv($fh, 0, '||' )) {
if ($line[0] == $name) {
echo <<<EOL
My color is $line[2]
EOL;
break; // if there's only ever one '5678' line in the, get out now.
}
}
fclose($fh);
$fb = $line[2];
I would like to remove the echo i.e. remove the “My color is….” on the user’s browser please. How can I remove the code without getting any errors please?
I tried many times… I am still a beginner to PHP.
Thanks.
You can comment out code like that.