Skip to content
Advertisement

if enctype setting is not correct, photo is not inserted through php file however other data can come through

h

hi I want to insert data in database included photo. also after inserting in database, image should come to a web page. it get inserted in database but I get the following warning when I want to see it in a web page:

Warning: Undefined array key “photoPath” in D:xamppweekendhtdocsworkdelivercweb7ForServer3insertItem.php on line 30

Warning: Trying to access array offset on value of type null in D:xamppweekendhtdocsworkdelivercweb7ForServer3insertItem.php on line 30

Warning: Undefined array key “photoPath” in D:xamppweekendhtdocsworkdelivercweb7ForServer3insertItem.php on line 43

Warning: Trying to access array offset on value of type null in D:xamppweekendhtdocsworkdelivercweb7ForServer3insertItem.php on line 43 Insert item <?php require_once “classes/DBAccessModify.php”;

JavaScript

include “templates/layoutModifyItem.html.php”; ?>

Advertisement

Answer

droopsnoot solved the problem Not me! Do not know how to put him instead. Thanks a lotttt

Does your form opening tag contain the appropriate enctype setting? – droopsnoot 15 hours ago

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement