+ 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?

19th Mar 2021, 9:27 PM
Fram
Fram - avatar
21 Antworten
+ 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
22nd Mar 2021, 1:16 PM
Jorge Corante
Jorge Corante - avatar
+ 2
For static websites you have nodejs utilities like browser-sync or liveserver
20th Mar 2021, 8:48 PM
David Ordás
David Ordás - avatar
+ 1
Martin Taylor Thanks So what is php ? When I have to use this language?
19th Mar 2021, 9:35 PM
Fram
Fram - avatar
+ 1
Yes I learned those languages but the only problem was how to load files to a server Thanks for your help
19th Mar 2021, 9:51 PM
Fram
Fram - avatar
+ 1
Thank you so much Martin Taylor You helped me alot🙏🙏
19th Mar 2021, 10:54 PM
Fram
Fram - avatar
22nd Mar 2021, 5:20 PM
Jorge Corante
Jorge Corante - avatar
+ 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
22nd Mar 2021, 5:23 PM
Jorge Corante
Jorge Corante - avatar
0
Web designing
19th Mar 2021, 10:10 PM
Fram
Fram - avatar
0
Oh sorry PC
19th Mar 2021, 10:16 PM
Fram
Fram - avatar
0
Jorge Corante Ok thanks🙏
22nd Mar 2021, 4:37 PM
Fram
Fram - avatar
0
Jorge Corante So I need php and query?
22nd Mar 2021, 4:42 PM
Fram
Fram - avatar
0
Here an example~~
22nd Mar 2021, 5:19 PM
Jorge Corante
Jorge Corante - avatar
0
What's mysql_connect?
22nd Mar 2021, 5:51 PM
Fram
Fram - avatar
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");
22nd Mar 2021, 6:12 PM
Jorge Corante
Jorge Corante - avatar
0
Ok thanks for your help
22nd Mar 2021, 6:13 PM
Fram
Fram - avatar
- 1
Hi
20th Mar 2021, 9:54 PM
Victor Clayton