/users/patterns/www/news.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>News</title>
</head>

<body>

    <div><h1 align="center">News in Datenbank eintragen</h1><br></div>
    <form method="post" action="editNews.php" enctype="multipart/form-data">
        Datum:
        <input type="date" name="Datum">
        <br><br>
        Bezeichnung:
        <?php
            
include './schnitte/connect.php';
            
$select=MYSQLI_QUERY$link"SELECT * FROM $tabelle ORDER BY ID DESC");
        
?>
       <!-- <select name="Name">    -->
       <input type="text" name="Name" list="namelist" size="50" placeholder="Text eingeben oder Teil wählen" autocomplete="off">
           <datalist id="namelist">
        <?php
            
/*while($row = mysqli_fetch_array($select, MYSQLI_BOTH)) {
                echo '<option value="'.$row[image].'">'.$row[bezeichnung].'</option>';    */
            
while($row mysqli_fetch_array($selectMYSQLI_BOTH)) {
                echo 
'<option value="'.$row[image].'">'.$row[bezeichnung].'</option>';
            }
        
?>
        </datalist>
      <!--  </select>    -->
        <br><br>
        <p>News Deutsch:</p>
        <textarea cols="50" rows="10" name="NewsDE"></textarea>
        <br><br>
        <p>News Englisch:</p>
        <textarea cols="50" rows="10" name="NewsEN"></textarea>
        <br><br>
        <input type="file" name="datei"><br>
                
       <!-- Link:
        <input type="text" name="Link">
        
        <input type="hidden" value= name="Link">
        <br><br>
        -->
        <div align="center">
        <input type="submit" value="Fertig, in Datenbank eintragen">
        </div>
    </form>
</body>
</html>