mysql - Undefined index: on uploading an image into database from php
920
Sorry for that question, but I tried everything and i can't solve my problem.
I'm trying to add an image to the database from a form in php and then show the image on the page.
However I am with an error I can't solve.
The error is this:
Does anyone could help me please?
Thanks everyone.
-----index.php
Answer
------get.php-----
Line 18:
{-code-4}
Answer
Answer
thanks everyone for all sugestions. I tried everything you guys said. And the result was this.
What's going on?
Answer
Solution:
You forgot the 't' here.
enctype="mulipart/form-data"
so
enctype="multipart/form-data"
You're also trying to check for
isset($_POST['image'])
which should beisset($_FILES['image'])
Answer
Solution:
apart from typo fix of
mulipart/form-data
tomultipart/form-data
You need to validate/check it before accessing