lampongyuen commited on
Commit
e1c39c8
·
1 Parent(s): e41a094

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -58,7 +58,7 @@ def main():
58
  email=st.text_input("Enter New Email")
59
  if st.button("Update"):
60
  sql="update users set email=%s where name=%s"
61
- val=(name,new_email)
62
  mycursor.execute(sql)
63
  mydb.commit()
64
  st.success("Record Updated Successfully!!!")
 
58
  email=st.text_input("Enter New Email")
59
  if st.button("Update"):
60
  sql="update users set email=%s where name=%s"
61
+ val=(name,email)
62
  mycursor.execute(sql)
63
  mydb.commit()
64
  st.success("Record Updated Successfully!!!")