Hi
I'm reading a file and then displaying it line by line.
What I want is if the user specifies an 'id' then the corresponding line is BOLD.
The URL I'm trying with is file.php?id=2, so all lines should be normal but line 2 should be bold.
This is what I've got, but it doesn't seem to work.
foreach ($lines as $line_num => $line)
{
if ($line_num === $_REQUEST['id']) {
echo "<b>BLAH</b>";
} else {
echo "BLAH";
}
}
Any ideas ? thanks