Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
ставаecho $row[title];
А в самото начало , преди да изведеш новините слагашecho "<a href=\"news.php?id=".$row[id]."\">".$row[title]."</a>";
<?php
if (!is_numeric($_GET['id'])) {
// кодът за новините
}
else {
$mysql = mysql_query("SELECT * FROM `таблицата` WHERE id='".$_GET['id']."'")or die(mysql_error());
if (mysql_num_rows($mysql) > 0) {
$row = mysql_fetch_array($mysql);
echo "<pre>".$row[title]."</pre>";
echo "<p>".$row[text]."</p>";
}
else {
echo "Няма такава новина";
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Formula 1 :: Новини, статии, коментари и всичко останало от света на Формула 1</title>
<meta name="keywords" content="KEYWORD,KEYWORD,KEYWORD" />
<meta name="description" content="DESCRIPTION ABOUT YOUR PAGE GOES HERE." />
<meta name="robots" content="index, follow" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="animatedcollapse.js">
/***********************************************
* Animated Collapsible DIV v2.2- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<script type="text/javascript">
animatedcollapse.addDiv('jason', 'fade=1,height=300px')
animatedcollapse.addDiv('kelly', 'fade=1,height=100px')
animatedcollapse.addDiv('michael', 'fade=1,height=120px')
animatedcollapse.addDiv('cat', 'fade=0,speed=400,group=pets')
animatedcollapse.addDiv('dog', 'fade=0,speed=400,group=pets,persist=1,hide=1')
animatedcollapse.addDiv('rabbit', 'fade=0,speed=400,group=pets,hide=1')
animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted
//$: Access to jQuery
//divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID
//state: "block" or "none", depending on state
}
animatedcollapse.init()
</script>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<body>
<table width="821" border="0" align="center" cellpadding="0" cellspacing="0" id="table6">
<tr>
<td class="Navigation">
<body>
</td>
</tr>
</table>
<table width="821" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="BannerBack"> </td>
</tr>
</table>
<table width="821" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="Navigation"><style type="text/css">
@import url(menu/1/menu_style.css);
</style>
</head>
<body>
<ul id="menu">
<li><a href="index.php" title="НАЧАЛО"><font size="2">НАЧАЛО</font></a></li>
<li><a href="news.php" title="НОВИНИ"><font size="2">НОВИНИ</font></a></li>
<li><a href="http://formula1.byethost17.com/forum/" title="ФОРУМ"><font size="2">ФОРУМ</font></a></li>
<li><a href="reklama.php" title="РЕКЛАМА"><font size="2">РЕКЛАМА</font></a></li>
<li><a href="kontakti.php" title="КОНТАКТИ"><font size="2">КОНТАКТИ</font></a></li>
<li><a href="gallery.php" title="Галерия"><font size="2">ГАЛЕРИЯ</font></a></li>
</ul>
</td></table>
<table width="821" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="185" class="ContentLeftBack"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="LeftTop">Навигация</td>
</tr>
<tr>
<td class="LeftMenu"><b><a href="#"><font color="#555555">Начало</font></a></b></td>
</tr>
<tr>
<td class="LeftMenu"><b><a href="index.php"><font color="#555555">Начало</font></a></b></td>
</tr>
<tr>
<td class="LeftMenu"><b><a href="news.php" class="black"><font color="#555555">Новини</font></a></b></td>
</tr>
<tr>
<td class="LeftMenu"><b><a href="http://formula1.byethost17.com/forum/" class="black"><font color="#555555">Форум</font></a></b></td>
</tr>
<tr>
<td class="LeftMenu"><b><a href="klasirane.php" class="black"><font color="#555555">Класиране</font></a></b></td>
</tr>
<tr>
<td class="LeftMenu"><b><a href="piloti.php" class="black"><font color="#555555">Пилоти</font></a></b></td>
</tr>
<tr>
<td class="LeftMenu"><b><a href="kalendar.php" class="black"><font color="#555555">Календар</font></a></b></td>
</tr>
<tr>
<td class="LeftMenu"><b><a href="reklama.php" class="black"><font color="#555555">Реклама</font></a></b></td>
</tr>
<tr>
<td class="LeftMenu"><b><a href="kontakti.php" class="black"><font color="#555555">Контакти</font></a></b></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="table10">
<tr>
<td class="LeftTop">Реклама</td>
</tr>
<tr>
<td class="LeftBackground">
<table width="154" border="0" align="center" cellpadding="0" cellspacing="0" id="table11">
<tr>
<td width="154">
<p align="center" style="margin-top: 0"><a href="http://formula1.bg/">
<img border="0" src="images/Logo1(21)[1].jpg" width="88" height="31"></a></div>
</p>
<div align="center">
<a href="http://clubf1.net/">
<img border="0" src="images/c7b3728a91d1b624a254167005295206[1].gif" width="88" height="31"></a></div>
<p align="center" style="margin-bottom: -3px"><a href="http://UserBars-BG.com" target="_blank"><img
src="http://www.userbars-bg.com/banners/Banner%2088x31.jpg"
alt="Българският сайт за UserBars!" border="0" /></a><p align="center" style="margin-bottom: -3px">
<a target="_blank" href="http://wallpapers-bg.com">
<img src="http://wallpapers-bg.com/images/banner-mini.gif" alt="Безплатни уолпейпъри" border="0"></a></td>
</tr>
<tr>
<td>
<ul>
<li>
<p align="left" style="margin-top: 3px; margin-bottom: 3px"><b><font color="#CC0000" size="1">
<a href="http://Formula1.BG"><font color="#CC0000">Formula1.BG
</font></a></font></b></li>
<li>
<p align="left" style="margin-top: 3px; margin-bottom: 3px"><font size="1" color="#CC0000"><b>
<a href="http://clubf1.net/"><font color="#CC0000">ClubF1</font></a></b></font></li>
<li>
<p align="left" style="margin-top: 3px; margin-bottom: 3px"><font size="1" color="#CC0000"><b>
<a href="http://kaldata.com/"><font color="#CC0000">IT
</font><span lang="bg"><font color="#CC0000">Новини</font></span></a></b></font></li>
<li>
<p align="left" style="margin-top: 3px; margin-bottom: -15px"><span lang="bg">
<font size="1" color="#CC0000"><b>Вашият линк тук?</b></font></span></li>
</ul>
</td>
</tr>
</table><hr>
<p style="margin-top: 3px; margin-bottom: 0px"><a href="http://sound-bg.com/">
<img border="0" src="images/ads2[1].png" width="120" height="240"></a></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="table4">
<tr>
<td class="LeftTop"><span lang="bg">Статистика</span></td>
</tr>
<tr>
<td class="LeftBackground">
<table width="144" border="0" align="center" cellpadding="0" cellspacing="0" id="table5">
<tr>
<td width="144">
<p align="center" style="margin-top: 0">
<a href="http://bgtop.net/in.php/1238428070">
<img src="http://bgtop.net/images/logos/bg_top_logo21.gif" border="0" width="88" height="31"></a></td>
</tr>
<tr>
<td><font size="1"></font></td>
</tr>
<tr>
<td><script type="text/javascript">
d=document;
d.write('<a href="http://www.tyxo.bg/?73091" title="Tyxo.bg counter" target=" blank"><img width="88" height="31" border="0" alt="Tyxo.bg counter"');
d.write(' src="http://cnt.tyxo.bg/73091?rnd='+Math.round(Math.random()*2147483647));
d.write('&sp='+screen.width+'x'+screen.height+'&r='+escape(d.referrer)+'" /><\/a>');
//-->
</script>
<noscript><a href="http://www.tyxo.bg/?73091" title="Tyxo.bg counter" target=" blank"><img src="http://cnt.tyxo.bg/73091" width="88" height="31" border="0" alt="Tyxo.bg counter" /></a></noscript>
</div>
</td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="table8">
<tr>
<td class="LeftTop"><span lang="bg">Часовник</span></td>
</tr>
<tr>
<td class="LeftBackground">
<table width="154" border="0" align="center" cellpadding="0" cellspacing="0" id="table9">
<tr>
<td width="154">
<p align="center" style="margin-top: 0; margin-bottom: 0">
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj2" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="154" height="154">
<param name="movie" value="flash/flash/clock7.swf">
<param name="quality" value="High">
<embed src="flash/flash/clock7.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj2" width="154" height="154"></object>
</td>
</tr>
</table></td>
</tr>
</table>
</td>
<td width="636" class="ContentRightBack">
<table width="636" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="546" class="HeaderContent">Пилоти</td>
</tr>
</table>
<table width="636" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="border1" height="143"><b><font size="2" color="#333333">Пилот Едно</font></b><p>
<b><font size="2" color="#333333">Пилот </font></b>
<font size="2" color="#333333"><b>Две</b></font></p>
<p><b><font size="2" color="#333333">Пилот </font></b>
<font size="2" color="#333333"><b>Три</b></font></p>
<p><b><font size="2" color="#333333">Пилот </font></b>
<font size="2" color="#333333"><b>Четири</b></font></p>
<p><b><font size="2" color="#333333">Пилот </font></b>
<font size="2" color="#333333"><b>Пет</b></font></tr>
</table>
<table width="636" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="523" class="HeaderContent">Реклама</td>
</tr>
</table>
<table width="636" border="0" cellspacing="0" cellpadding="0" height="163">
<tr>
<td width="132" class="Padding">
<p align="center" style="margin-top: 10px; margin-bottom: 0">
<img border="0" src="images/banners/88x31.gif" width="88" height="31"></p>
<p align="center">
<img border="0" src="images/banners/88x31.gif" width="88" height="31"></p>
<p align="center">
<img border="0" src="images/banners/88x31.gif" width="88" height="31"></td>
<td width="504" class="Text">
<p style="text-align: center; margin-top: 8px; margin-bottom: 0">
<img border="0" src="images/banners/468x60-1.jpg" width="468" height="60"></p>
<hr>
<p style="text-align: center; margin-top: 0; margin-bottom: 0">
<img border="0" src="images/banners/468x60-1.jpg" width="468" height="60"></td>
</tr>
</table>
<p style="text-align: center; margin-top: 0; margin-bottom: 0">
<img border="0" src="images/navigation.gif" width="636" height="3"></td>
</tr>
</table>
<table width="821" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="Footer">Дизайн: Даниел
Бибов | <b>Copyright © 200<span lang="en-us">9</span> <span lang="en-us">
Formula 1</span></b> | Всички права запазени!</td>
</tr>
</table>
</body>
</html>