lampongyuen commited on
Commit
6836c01
·
1 Parent(s): 3af420c

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,email,id)
62
  mycursor.execute(sql,val)
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,val)
63
  mydb.commit()
64
  st.success("Record Updated Successfully!!!")