Kolorowanie kodu — SyntaxHighlighter

<?php
require_once 'Smarty.class.php';

function getBooks()
{
    $books = array();
    $sql = "SELECT * FROM book ORDER BY tytul";
    $result = mysql_query($link, $sql);
    while ($row = mysql_fetch_assoc($result)) {
        array_push($books, $row);
    }
    return $books;
}

$s = new Smarty;
$s->assign('books', getBooks());
$s->display('index.tpl');
?>
<?php
require_once 'Smarty.class.php';

function getBooks()
{
    $books = array();
    $sql = "SELECT * FROM book ORDER BY tytul";
    $result = mysql_query($link, $sql);
    while ($row = mysql_fetch_assoc($result)) {
        array_push($books, $row);
    }
    return $books;
}

$s = new Smarty;
$s->assign('books', getBooks());
$s->display('index.tpl');
?>