Store User Input In File & MySQL Database With Python

preview_player
Показать описание
Guyz in this video i showed how can you take user inputs and then save it to file and mysql database .. I was so tired and sleepy so i made some mistakes too while making video that i corrected in the end :) .. Kindly like and share my videos and subscribe to my channel, i will create more better videos for you soon, Stay Tuned my friend!
Рекомендации по теме
Комментарии
Автор

You might be the reason I pass college 😂😂

vXFuRyXv
Автор

Thanks for sharing your valuable knowledge.

ganeshkudadhane
Автор

Thank you man, this helps me out on my project.

jaxcielo
Автор

This background sound is sad, but your content is awesome

thyagovieira
Автор

Thank you for nice tutorial. Can you show us how to run the python coding from web interface?

Sivardeye
Автор

Sir i just wanted to know how to fetch data according to the input of user from the database and show the related output to the user on a window rather than on the console? can you please make a video on this ?

prithvichetty
Автор

i have getting some error plz help me
>>Traceback (most recent call last):
File "C:/Users/hp/Desktop/db.py", line 19, in <module>
cursor.execute(sql, vals)
pyodbc.ProgrammingError: ('The SQL contains 0 parameter markers, but 6 parameters were supplied', 'HY000')

dheerajpatil
Автор

My data is not storing dynamically in file, it loads the data one the execution is complete, is there any way to store data in file at runtime?

ericarora
Автор

sir in my file data.txt the data are not getting stored??

arunkumark
Автор

I am trying to read file from user and check. if any field is blank then take the user input and store in csv
import csv
but getting the error with below code.

reader =
for raw in reader:
print(raw)
test=(raw['AccountId'])
test01=(raw['RegionName'])
test02=(raw['SubnetID'])
test03=(raw['OS_Name'])
test04=(raw['KeyName'])

if test == '':
print("Enter the AccountId: " ) # Required input from user and store in csv

elif test01='':
print("Enter the RegionName: ") # Required input from user and store in csv

elif test02='':
print("Enter the Subnet ID: ") # Required input from user and store in csv

elif test03='':
print("Enter the OS_Name: ") # Required input from user and store in csv

elif test04='':
print("Enter the KeyName: ") # Required input from user and store in csv

else:
print("All parameter is Correct")

# Write User Input in below CSV

with open("D:\python_Step_Step_Lab\Book1.csv", 'w') as csvfile: # Store the input in same file Book1.csv

pkvk
Автор

Will it store the data online? I mean if I store data from here, can I get it from another computer?

sajedurrahmanfiad
Автор

Hello, someone please help me I am a noob, I made a code that asks you your name, age, date and how was your day.


How do I save the input to a local text file soo like this

Name - my name

Age - myage

How was my day - story of my day.


So kind lf like a journal, how do I set this up? I would appreciate help thanks

TitaniumTronic
Автор

Can u share the code plz I need it urgent

devshah