GJSNeptune
[H]F Junkie
- Joined
- Mar 31, 2004
- Messages
- 12,372
I'm assuming that Hard Forum is using vB's default color scheme for the PHP tag. With a dark background, the color formatting (mainly the blue) within a PHP block is hard to see, making the PHP tag impractical and essentially useless. Most people in the Programming subforum settle for the colorless CODE tag instead.
Any chance this issue could be addressed?
---------------
Any chance this issue could be addressed?
PHP:
<?php
echo "Can you see me now?";
?>
Code:
<?php
echo "Can you see me now?";
?>
---------------
PHP:
<?php
import_request_variables('G', 'url_');
if ((isset($_GET[piece])) && ($_GET[piece] != "")) {
require("db/config.php");
require("db/opendb.php");
$query = "SELECT text, title, year FROM nonfiction WHERE id=". mysql_escape_string($_GET[piece]);
$result = mysql_query($query);
$content = mysql_fetch_assoc($result);
require("db/closedb.php");
echo "<h3>$content[title]</h3><br />";
echo "<p>$content[text]</p><br />";
echo "<span class=\"textcopy\">© $content[year]</span> <span class=\"courier\">Website</span>";
} else {
echo "<span class=\"choose\">Please choose a title.<br /><br /><br /><br /><br /><br /><br /></span>";
}
?>
Code:
<?php
import_request_variables('G', 'url_');
if ((isset($_GET[piece])) && ($_GET[piece] != "")) {
require("db/config.php");
require("db/opendb.php");
$query = "SELECT text, title, year FROM nonfiction WHERE id=". mysql_escape_string($_GET[piece]);
$result = mysql_query($query);
$content = mysql_fetch_assoc($result);
require("db/closedb.php");
echo "<h3>$content[title]</h3><br />";
echo "<p>$content[text]</p><br />";
echo "<span class=\"textcopy\">© $content[year]</span> <span class=\"courier\">Website</span>";
} else {
echo "<span class=\"choose\">Please choose a title.<br /><br /><br /><br /><br /><br /><br /></span>";
}
?>