Jump to content

Vadek

Neophyte
  • Posts

    1
  • Joined

  • Last visited

Information

  • Sex
    мужской

Vadek's Achievements

Explorer

Explorer (1/14)

0

Reputation

  1. Нужно сделать так чтобы выведенная новость из БД (1050 слов допустим) делилась на страницы по 100 слов. Вот код выведения новости из БД: <?php include("bd.php"); $res=mysql_query("SELECT * FROM `news` ORDER BY `id` DESC"); while($myrow=mysql_fetch_array($res)) { echo "<b><a class=title>".$myrow['title']."</a></b>"; echo "<a class=title_d>".$myrow['date_news']."</a><hr>"; if(isset($_GET['full']) && $_GET['full']==$myrow['id']) { echo "<div class=scroll><a class=mess>".$myrow['fullnews']."</a></div>"; echo "<a href=books.php>Скрыть</a><hr>"; } else { echo "<a class=mess>".$myrow['shortnews']."</a>"; echo "<a href=books.php?full=".$myrow['id']." class=button_full>Читать полностью</a>"; } } ?> Пишите вашу цену
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy