I'm facing some problem this is my database connection code connection = pymysql.connect(host='localhost', user='root', password='', db='indian-fashion') with connection.cursor() as cursor: cursor.execute("SELECT * FROM 'tb_post'") all1 = cursor.fetchall() print(all1) return all1[0]['title'] Is it wrong?
thanks bhi
I'm facing some problem
this is my database connection code
connection = pymysql.connect(host='localhost', user='root', password='', db='indian-fashion')
with connection.cursor() as cursor:
cursor.execute("SELECT * FROM 'tb_post'")
all1 = cursor.fetchall()
print(all1)
return all1[0]['title']
Is it wrong?
error 1064 aa rhii h.... you have an error in your SQL syntax... what to do now ????
Watch this video - ua-cam.com/video/Ct-t-uLSBmc/v-deo.html
and also watch the first video of this playlist (very important)!
sir nodejs pe video banao