Dec-15-2016, 03:43 PM
hi i have a raspberry pi3.
I install php mysql et...
Now i want search if value is present in table.
helpppp!
my code is
I install php mysql et...
Now i want search if value is present in table.
helpppp!
my code is
import time import MySQLdb val = 'BBBBB' db = MySQLdb.connect(host="localhost", user="", passwd="", db="") #create a cursor for the select cursor = db.cursor() # if val exist in tabella1 then insert in tabella2 if sql = "select * from tabella1 where valore = 'BBBBB' " ..... ....anyone help me please