Li1M0ST3Rz
I <3 Bianca
- Sep 13, 2010
- 269
- 166
Okay i coded a news system:
and it given me this and the news database filled with an table:
PHP:
<?php
include './lib/config.php';
$_result = mysql_query("SELECT * FROM news");
while($news = mysql_fetch_array($_result))
$id = $news['id'];
{
if(isset($_GET['id='.$id.'']))
{
$_resulted = mysql_query("SELECT * FROM news WHERE id=".$id."");
while($n_news = mysql_fetch_array($_resulted))
{
echo 'Topic: '. $n_news['topic'] .' <p>'.$n_news['body'].'</p> <p>Author: '.$n_news['author'].'</p>';
}
}
}
?>