ELDERS PLEASE HELP WITH DATABASE I request you to fully help me.... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

ELDERS PLEASE HELP WITH DATABASE I request you to fully help me....

i am begginer and i am making a site which requires login page i have made the design and all but when i log in through login page the data i put doesn't goto to the database and it didnt even show an error its successfully say you have be sing in please login now but when i check database there's nothing and ya if you can give me any contact of you it will be great ... Thnkxs for help in advance i realy need that site fast i have some issues please help me out

6th Apr 2017, 7:48 AM
Harsh Ranjan
Harsh Ranjan - avatar
8 Answers
+ 6
Are you using MySql in PHP?
6th Apr 2017, 8:24 AM
Cyrus Ornob Corraya
Cyrus Ornob Corraya - avatar
+ 2
what do you mean go to database?? you can query your db using php to get all data and use it in your HTML.
6th Apr 2017, 10:36 AM
seamiki
seamiki - avatar
+ 1
@Harsh Ranjan you need to execute queries from your php script in order to manage your DB. Use exceptions to see what kind of error you get when you try to connec to the database. Have a look at the PDO examples on w3schools.com Connect to DB https://www.w3schools.com/php/php_mysql_connect.asp Select data from DB https://www.w3schools.com/php/php_mysql_select.asp in the same set of tutorioals on w3schools you can find how to insert new data, edit/delete existing data.
7th Apr 2017, 4:28 PM
seamiki
seamiki - avatar
0
yes
6th Apr 2017, 8:37 AM
Harsh Ranjan
Harsh Ranjan - avatar
0
ya but its showing fine but the data is not getting stored in the db what could be the reasons behind this #seamiki
6th Apr 2017, 1:20 PM
Harsh Ranjan
Harsh Ranjan - avatar
0
post your code maybe we can handle it
6th Apr 2017, 1:51 PM
Mainankaye Evele
Mainankaye Evele - avatar
0
oki but there are lots of file because its an login page so how should i paste it here
6th Apr 2017, 2:11 PM
Harsh Ranjan
Harsh Ranjan - avatar
0
thnkxs @seamiki
8th Apr 2017, 3:21 AM
Harsh Ranjan
Harsh Ranjan - avatar