Hey, am having trouble with the escape sequence with this line of code.
[php]echo “<li class=”<?php echo $current_page == ‘$line.php’ ? ‘active’:NULL ?"">">"$line"";
and I tried this
“<li class=”"<?php echo $current_page == $line.php ? 'active':NULL ?>"">$line"[/php]
Just generally having trouble with this.
[php] <?php
while (!feof($file_handle)) {
$line = fgets($file_handle);
echo "<li class=""<?php echo $current_page == $line.php ? 'active':NULL ?>""><a href=$line.php>$line</a></li>";
}
fclose($file_handle);
?>[/php]
The piece looks like this.