Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
u1_insert [2019-11-14 20:46]
Joakim Forsgren
u1_insert [2019-11-14 20:46]
Joakim Forsgren
Line 43: Line 43:
 mysqli_set_charset($link, "utf8"); mysqli_set_charset($link, "utf8");
    
-/* + 
- Lägger in data i databasen om man har tryckt på submit, +// Lägger in data i databasen om man har tryckt på submit, 
- laddar om sidan för att tömma POST cachen. +// laddar om sidan för att tömma POST cachen. 
- */+
 if (!empty($_POST['Item'])) { if (!empty($_POST['Item'])) {
   $query="INSERT INTO `Items` (   $query="INSERT INTO `Items` (