undefined index error in mysql query

后端 未结 4 605
时光取名叫无心
时光取名叫无心 2020-12-20 10:44


        
4条回答
  •  梦毁少年i
    2020-12-20 11:22

    You're checking for the presence of $_POST['submit'], and setting some variables if it's found. You're then executing your mysql query outside the conditional block, so if the $_POST variables aren't found you'll get undefined variable errors.

    Try

    
    

提交回复
热议问题