Python Forum
Python keeps inserting NULL values into table
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python keeps inserting NULL values into table
#15
Make sure that what you get from request.form.get('username') is indeed the user input. You were printing username and password. What you get printed? That will show that the problem is in the DB part. Given it insert NULL, I guess for whatever reason request.form.get('username') might be returning None, in which case it's not DB related issue at all
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
SQL not INSERTING into table - by card51shor - Jun-09-2020, 01:31 AM
RE: Python keeps inserting NULL values into table - by buran - Jun-09-2020, 06:32 AM
RE: SQL not INSERTING into table - by Larz60+ - Jun-09-2020, 02:08 AM
RE: SQL not INSERTING into table - by card51shor - Jun-09-2020, 02:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with number of rows containing null values PythonSpeaker 3 2,304 Nov-23-2019, 06:53 PM
Last Post: ibreeden
  Issues with Inserting Values into an Empty List with a While Loop TommyMer 2 3,850 Sep-12-2018, 12:43 AM
Last Post: TommyMer
  file a table of values Ybivashka322 4 3,845 Dec-14-2017, 06:11 PM
Last Post: mpd

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020