diff --git a/core/templates/entity-create.php b/core/templates/entity-create.php index 88ba342..e53b2c1 100644 --- a/core/templates/entity-create.php +++ b/core/templates/entity-create.php @@ -45,7 +45,7 @@ } if (!isset($error)){ - $new_id = mysqli_insert_id($link); + $new_id = $link->insert_id; header("location: {TABLE_NAME}-read.php?{COLUMN_ID}=$new_id"); } else { $uploaded_files = array(); @@ -98,4 +98,4 @@ }); - \ No newline at end of file +