PHP Registration code

后端 未结 4 954
小蘑菇
小蘑菇 2021-01-16 23:27

I am currently attempting to create a registration script to enter registration information into my UserAccount table. Below is my connection:



        
4条回答
  •  广开言路
    2021-01-16 23:58

    You have to see if your query is even being executed? what's the error that your query is returning? Try

    mysqli_query($conn,$insert) or die(mysqli_error($conn));
    

    That will tell you why there is no data. Good time you moved to MYSQLI or PDO

    EDIT:

    Also you are using a variable $l_name which has not been declared before. In your query it should be $s_name. Most probably your table is set to NOT accept blank value for l_name and that's where it fails

提交回复
热议问题