next up previous contents
Next: A.9 insert.php4 Up: A. Der Programmcode Previous: A.7 links.php4

A.8 text.php4


<?
    // Checks Authentication, if valid, show text of link
    error_reporting(0); // 0 = none, 63 = full
    include("./config.php4");
    
    // Debug Information and initialisation

    session_start();
    headerNoCache();

    // Initialize connection to DB
    $db = mysql_pconnect($hostname, $username, $password);
    mysql_select_db($database,$db);
    $uuid=checkAuth($user, $pwd, $db);

    // Login sucessfull
    echo "
            <wml>
            <card id=\"c1\" title=\"Information\">
            <p>";
            $result = mysql_query("SELECT data FROM passdata
                WHERE uuid='$uuid' ORDER BY link",$db);
            $a=0;
            while ($rowdata = mysql_fetch_row($result)) {
            	 if ($a==$link) {
			$text1=string2unicode($rowdata[0]);
			break;
		 };
		 $a++;
            };            	
            echo $text1;
            echo "<br/><a href=\"links.php4\">Zur&#252;ck</a>";
            echo "<br/><a href=\"deldata.php4?
               link=$link\">Eintrag l&#246;schen</a>";
            echo "
            </p>
            <do type=\"prev\" label=\"Zur&#252;ck\"><prev/></do>
            </card>
            </wml>";
?>



2001-06-21 Copyright by Jens Bierkandt, bierkandt@waptune24.de, waptune24.de