GET /add.php
POST /doadd.php
INSERT INTO
`ingredient`
(`id`, `nom`, `type`)
VALUES
(NULL, 'Salade', 'Filling')
;
GET / GET /index.php
SELECT
id,
nom,
type
FROM
ingredient
;
GET /details.php?id={id}
SELECT
id,
nom,
type
FROM
ingredient
WHERE
id = 1
;
GET /edit.php?id={id}
SELECT
id,
nom,
type
FROM
ingredient
WHERE
id = 1
;
POST /doedit.php
UPDATE
`ingredient`
SET
`nom` = 'Laitue'
WHERE
`id` = 1
;
GET /delete.php?id={id}
SELECT
id,
nom,
type
FROM
ingredient
WHERE
id = 1
;
POST /dodelete.php
DELETE FROM
`ingredient`
WHERE
`id` = 2
;