hi...kann mir hier vielleicht jemand helfen?
ich habe eine "php-seite" die mir in einer tabelle meine mysql tabelle (kunden) aus der datenbank (projectx) ausgibt....
dieser tabelle (auflistung von projekten) habe ich einen beenden button ("<input type='submit' name='beenden' value='beenden' />") eingefügt...
ganzer code:
PHP
<?php
$db = mysqli_connect("localhost", "root", "", "projectx");
if(!$db)
{
exit("Verbindungsfehler: ".mysqli_connect_error());
}
$ergebnis = mysqli_query($db, "SELECT * FROM kunden");
echo "<table class=tableprojekt><tr>
<th> Projektname </th>
<th> Vorname </th>
<th> Nachname </th>
<th> Telefon </th>
<th> Mobil </th>
<th> Email </th>
<th> Internetadresse </th>
<th> Benutzername </th>
<th> Passwort </th>
<th> Beginn </th>
<th> Ende </th>
</tr>";
while($row = mysqli_fetch_object($ergebnis))
{
echo "<tr>";
echo "<td>"," ",$row->projektname," ","</td>";
echo "<td>"," ",$row->vorname," ","</td>";
echo "<td>"," ",$row->nachname," ","</td>";
echo "<td>"," ",$row->telefon," ","</td>";
echo "<td>"," ",$row->mobil," ","</td>";
echo "<td>"," ",$row->email," ","</td>";
echo "<td>"," ",$row->internetadresse," ","</td>";
echo "<td>"," ",$row->benutzername," ","</td>";
echo "<td>"," ",$row->passwort," ","</td>";
echo "<td>"," ",$row->beginn," ","</td>";
echo "<td>"," ",$row->ende," ","</td>";
"<form method='POST'>";
echo "<td>"," ","<input type='submit' name='beenden' value='beenden' />"," ","</td>";
"</form>";
"</table>";
}
?>
Alles anzeigen
FRAGE: was muss ich machen, damit in die tabelle (kunden), der mysql datenbank (projectx) in die spalte (beendet) das wort "beendet", bei dem projekt in dessen zeile ich auf beendet gedrückt habe, eingetragen wird sobald ich in einer projektspalte auf beendet drücke?
vielen dank fürs durchlesen und eventuelle antworten
schonmal einen guten rutsch!