+ 1

Can anyone help me to create a registration webpage,using php and SQL.

I tried to create a registration webpage using php and SQL, but it was unsuccessful. I use MAMP for local web hosting. Can someone give me a solution and proper source code https://code.sololearn.com/WFo9TDH5DAL8/?ref=app

27th Jan 2020, 5:10 PM
Rohith Nath
Rohith Nath - avatar
13 Answers
0
any error ? you can also post the piece of code that possibly cause the error here.
27th Jan 2020, 5:14 PM
Taste
Taste - avatar
27th Jan 2020, 5:50 PM
Rohith Nath
Rohith Nath - avatar
0
can you explain what part is unsuccessful ?
27th Jan 2020, 5:54 PM
Taste
Taste - avatar
0
The php part is not working, it displays the code itself while clicking Sign up. And many other errors, you can check while running the code
27th Jan 2020, 5:56 PM
Rohith Nath
Rohith Nath - avatar
0
you cant run the code in playground. it doesnt design to render a php code. did you get any error when running in your MAMP ?
27th Jan 2020, 6:00 PM
Taste
Taste - avatar
0
It says " FORBIDDEN You don't have permission to access /<on this server
27th Jan 2020, 6:05 PM
Rohith Nath
Rohith Nath - avatar
0
its looks like a problem with MAMP, not the code itself. i dont use MAMP myself, but you should check your file structure inside MAMP , is it in htdocs, does your file has its own folder, did you use the right link to the file, etc. also try to restart MAMP sometimes it help.
27th Jan 2020, 6:11 PM
Taste
Taste - avatar
0
Now it says that Could not connect. Access denied for user 'root'@'localhost'(using password: NO) Which application do you use for local web hosting?
27th Jan 2020, 6:17 PM
Rohith Nath
Rohith Nath - avatar
0
its probably a database connection error, are you sure root doesnt have a password ? make sure you can login to your database from terminal using root as the username. i was using xampp.
27th Jan 2020, 6:21 PM
Taste
Taste - avatar
0
Okay Thanks a lot for your help, I will try Xampp later. Could you check if there is any errors in my codes if possible?
27th Jan 2020, 6:27 PM
Rohith Nath
Rohith Nath - avatar
0
just a quick look, i dont see any problem. i cant check throughly its so late here, so maybe there are some that i missed. but i pretty sure php will show the error if there;s any
27th Jan 2020, 6:31 PM
Taste
Taste - avatar
0
You can try your using XAMPP that allows you to use your local host as a personal server. This also compile php can you try your code there to discard any errors of MAMP it's because I don't see any errors on including the php
27th Jan 2020, 8:43 PM
Brouse_13
Brouse_13 - avatar
0
use xampp webserver it is common for all platforms Note : Make sure that IIS ( Internet Information Services) ASP server is stopped since ASP and PHP servers run on same port no : 80 it is not possible to run different servers with same port no at a time
29th Jan 2020, 1:38 PM
sree harsha
sree harsha - avatar