+ 4
Connect a website to a server
Hello I can build a website but I dont know exactly what should I do to connect it to a server Should I start from PHP or anything else. Please help. For example what I need to connect a login page to main page?
16 ответов
+ 1
You can use xampp or wampp to run a local server and practice php , to connect a login page with a main page you can use a form in your login page and send the field usser and password to a php file in the php file you need to call your database and do a query to verify if that usser and password are the in the database , if that's true you can show the mainpage with the info of that user , if the sql query is false then redirect to login page again
+ 2
For static websites you have nodejs utilities like browser-sync or liveserver
+ 1
Martin Taylor
Thanks
So what is php ?
When I have to use this language?
+ 1
Yes I learned those languages but the only problem was how to load files to a server
Thanks for your help
+ 1
Thank you so much Martin Taylor
You helped me alot🙏🙏
+ 1
But first need to do the conexion.php file but that's easy only need to use mysqli_connect of php and fill the fields with the info of your database , if you have a question about the code i can answer you
0
Web designing
0
Oh sorry
PC
0
Jorge Corante
Ok thanks🙏
0
Jorge Corante
So I need php and query?
0
Here an example~~
0
What's mysql_connect?
0
Is the connection between database and php code without that you can't manage the database , but is a short script if you are using xampp probably should be something like
$variable = ("localhost" , "root" , "" , "database name");
0
Ok thanks for your help
- 1
Hi