Bestellformular

Dateiübersicht

defines.phpProjektweit gültige Definitionen
authorization.phpPasswort-Authentifizierung
login.phpAnmeldeseite
makelogin.phpAccount einrichten
password.phpVergessene Passwörter ersetzen
randompasswd.phpZufallspasswörter erzeugen
logout.phpAbmelden
account.phpPersönliche Daten verändern
index.phpHauptseite mit dem Bestellformular
Fehler.phpFehlerfunktion
index.htmlStartseite mit Umleitung auf index.php

Aufbau der Datenbank

Die nicht gezeigten Tabellen benutzer und gaestebuch (letztere wird hier gar nicht gebraucht) finden Sie bei den Dateien des Gästebuchs.

weiss/WK2004IK23> mysql -u test
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 226837 to server version: 4.0.18

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use test_login  
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;
+----------------------+
| Tables_in_test_login |
+----------------------+
| benutzer             |
| bestellungen         |
| gaestebuch           |
| produkte             |
+----------------------+
4 rows in set (0.00 sec)

mysql> describe bestellungen;
+-----------+------------------+------+-----+---------+----------------+
| Field     | Type             | Null | Key | Default | Extra          |
+-----------+------------------+------+-----+---------+----------------+
| id        | int(10) unsigned |      | PRI | NULL    | auto_increment |
| userid    | int(10) unsigned |      |     | 0       |                |
| productid | int(10) unsigned |      |     | 0       |                |
| anzahl    | int(10) unsigned |      |     | 0       |                |
+-----------+------------------+------+-----+---------+----------------+
4 rows in set (0.00 sec)

mysql> describe produkte;
+-------+------------------+------+-----+---------+----------------+
| Field | Type             | Null | Key | Default | Extra          |
+-------+------------------+------+-----+---------+----------------+
| id    | int(10) unsigned |      | PRI | NULL    | auto_increment |
| Name  | tinytext         | YES  |     | NULL    |                |
+-------+------------------+------+-----+---------+----------------+
2 rows in set (0.00 sec)

mysql>