<untitled> (PHP)
Ревизии: current
<?php
$result = $db->query_read("
SELECT title, author, book_id, cover_type
FROM ". TABLE_PREFIX ."books
LIMIT 5");
while ($row = $db->fetch_array($result))
{
print '<div align="center">
<img src="http://lib.iguides.ru/covers/'.$row['book_id'].''.$row['cover_type'].'" border="0" />
<br />
Название: <strong>'.$row['title'].'</strong><br />
Автор: <strong>'.$row['author'].'</strong><br />
<a href="http://lib.iguides.ru/book/'.$row['book_id'].'"><strong>Подробнее »</strong></a></div>
';
}
?>
Комментарии:
Нет