How can I read what is in a database and checking if a certain string is in there? i am using python with sqlite3 -


instead of reading , fetching data database, how go reading database , checking piece of data in there?

i have created database login system holding emails, passwords etc , user whether or not have login.

at moment users can create login, if have one, read through database , check email have typed in in there , if password matches 1 stored email.

sqlite databases files, simplest method of retrieval going to query database.

you query email , password combination , verify against user has entered. imagine have simple schema name, email, password, run sql command select email, password table name == (name of user). if you're using python client, cursor object, , call cursor.fetchall() method return tuples of results.

in case there should 1 or 0 results, should easy handle.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -