I keep getting the error "Database.db_search(search) NameError: name 'Database' is not defined".
If anybody could help me I would really appreciate it, I am also new to Stack Overflow so I apologize for any errors I may have made in regards to the overall layout of asking a question.
Thanks.
Database File:
from Staff import *
def db_search(self):
query = "SELECT * FROM customer_information WHERE Last_Name = %s"
cursor.execute(query, (last_name,))
for (Last_Name) in cursor:
print(Last_Name)
return last_name
Staff File:
from Database import *
def gett():
search = search_entry.get()
Database.db_search(search)`