Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once('admin/config.php');
- mysql_select_db($db, $conn);
- session_start();
- if (!($conn)) {
- echo "Fehler bei der Verbindung: " . mysql_error();
- exit();
- }
- $news = mysql_query("SELECT * FROM news ORDER BY id ASC");
- if($_GET['show'] != ''){
- $data = mysql_fetch_assoc(mysql_query("SELECT * FROM news WHERE id='".$_GET['show']."';"));
- echo "<b>".$data['title']."<a></b> geschrieben von ".$data['username'].", am ".date('d.m.Y, H:i', $data['time'])."<br />
- ".$data['message']."<br />Kommentare:<br />";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement