Hallo,
ich hoffe das ist jetzt erstmal die letzte Frage die ich stellen muss. Hab eine Fehlermeldung bekommen bei folgender Datei:
	
 Fehlermeldung:
	
							
						
					ich hoffe das ist jetzt erstmal die letzte Frage die ich stellen muss. Hab eine Fehlermeldung bekommen bei folgender Datei:
PHP Code:
	
	
<?php include ("checkuser.php"); ?>
<?php session_start (); ?>
<?php
    error_reporting(E_ALL);
    include "../inc/config.php";
    if(!@mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS)) {
        die("<div class=\"fehler\" align=\"left\"><b>Fehler:</b>
        Es konnte keine Verbindung aufgebaut werden.<br></div>");
    }
    if(!mysql_select_db(MYSQL_DATABASE)) {
        die("<div class=\"fehler\" align=\"left\"><b>Fehler:</b>
        Die Datenbank konnte nicht benutzt werden.<br></div>");
    }
    // Verbindung zu MySQL Aufbauen
    @mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS) OR die(mysql_error());
    mysql_select_db(MYSQL_DATABASE) OR die(mysql_error());
        $action = "";
    if(isset($_GET['action']))
    {
    $action = $_GET['action'];
         $_SESSION["s_news_id"] = "$news_id";
    $_SESSION["s_news_titel"] = "$news_titel";
    $_SESSION["s_news_inhalt"] = "$news_inhalt";
    }
    if ($action == "")
    {
    $sql = "SELECT ID, Titel FROM News ORDER BY Datum DESC";
    $result = mysql_query($sql) OR die(mysql_error());
    if(mysql_num_rows($result)) {
        while($row = mysql_fetch_assoc($result)){
        // Alle Einträge auflisten
        echo "<div class=\"news\">
<a href=\"cp.php?page=03&action=update&news_id=
" . $row['ID'] . "&titel=".$row['Titel']."\">[ID: ";
        echo $row['ID'];
        echo "] <b>";
        echo $row['Titel'];
        echo "</a></b></div>";
    }
    } else {
    echo "Keine News vorhanden.";
    }
    echo "<br>";
    }
    elseif ($action == "update" && !empty($_GET["news_id"]))
    {
?>
    <form action="cp.php?page=03&action=set" method="post">
      <div align="center" class="news">
        <b>Titel</b><br><input name="news_titel" type="Text" size="30"
value="<? $news_titel ?>"><br>
        <b>Text</b><br><textarea name="news_inhalt"
cols="27" rows="10"><? $news_inhalt ?></textarea><br>
        <input type="submit" value="speichern">
        <input type="hidden" name="action" value="speichern">
      </div>
    </form>
<?php
    }
    elseif ($action == "set")
    {
        $news_titel = $_SESSION["s_news_titel"];
        $news_inhalt = $_SESSION["s_news_inhalt"];
        $news_id = $_SESSION["s_news_id"];
        $sql = "UPDATE News SET Titel = $news_titel,
Inhalt = $news_inhalt WHERE ID = $news_id";
        $result = mysql_query($sql) OR die(mysql_error());
    }
?> # Zeile 67
PHP Code:
	
	
Parse error: parse error, unexpected $ in /srv/www/web1/html/.../news_set.php on line 67 
 
          

Comment