0

How to add basic log in/sign up PHP server in website?

example?

11th May 2018, 11:04 AM
Jatin Vaishnav
Jatin Vaishnav - avatar
10 Respostas
+ 1
ok i made a basic login with a mysql/mariadb database systeme, but its just a function that return true(if its true it sets a session variable with the userid) or false(does nothing than return false). https://code.sololearn.com/w79797cF2wpP/#php if any question left no fear to ask i'll help you. even if its about seting up your server.
14th May 2018, 5:58 PM
Lexfuturorum
Lexfuturorum - avatar
0
basic thats funny with xml or sql?
11th May 2018, 11:49 AM
Lexfuturorum
Lexfuturorum - avatar
0
e.g.when we login or sign up in website ...where all data goes...PHP server right?so..my question is that how to code that PHP?I'm confused
11th May 2018, 2:49 PM
Jatin Vaishnav
Jatin Vaishnav - avatar
0
yes your right but where you wanna store your userdata
11th May 2018, 2:50 PM
Lexfuturorum
Lexfuturorum - avatar
0
I don't know😅plz let me know where to store it
14th May 2018, 5:32 PM
Jatin Vaishnav
Jatin Vaishnav - avatar
0
ok..ty..tell me how to setup that seever
16th May 2018, 6:15 AM
Jatin Vaishnav
Jatin Vaishnav - avatar
0
ok..ty..tell me how to setup that server
16th May 2018, 6:15 AM
Jatin Vaishnav
Jatin Vaishnav - avatar
0
dude ur PHP code pop this message.. Notice: Undefined index: passwd in ..\Playground\ Notice: Undefined index: email in ..\Playground\ Notice: Undefined variable: db_password in ..\Playground\ Fatal error: Uncaught PDOException: could not find driver in ..\Playground\:14 Stack trace: #0 ..\Playground\(14): PDO->__construct('mysql:host=loca...', 'testuser', NULL) #1 ..\Playground\(29): login('', '') #2 {main} thrown in ..\Playground\ PHP Notice: Undefined index: passwd in ..\Playground\ PHP Notice: Undefined index: email in ..\Playground\ PHP Notice: Undefined variable: db_password in ..\Playground\ PHP Fatal error: Uncaught PDOException: could not find driver in ..\Playground\:14 Stack trace: #0 ..\Playground\(14): PDO->__construct('mysql:host=loca...', 'testuser', NULL) #1 ..\Playground\(29): login('', '') #2 {main} thrown in ..\Playground\
16th May 2018, 6:16 AM
Jatin Vaishnav
Jatin Vaishnav - avatar
0
yes this message pops up because $_POST["email"] and $_POST["passwd"] have no value because no form has been submited and sololearn doesn't support POST and sql
16th May 2018, 7:20 AM
Lexfuturorum
Lexfuturorum - avatar
0
and about the server do you have a vserver or dedserver you already rented or do you have a webserver or do you wanna just try it local(on you pc)
16th May 2018, 7:26 AM
Lexfuturorum
Lexfuturorum - avatar