PHP Session Login with Database

PHP Session Login with Database

CodeFlix

4 года назад

15,361 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@sabitarturk8720
@sabitarturk8720 - 27.01.2023 15:02

Sir, I want to ask you something. On the register.php page, I get the user's name, email address, password and company name. then on my index.php page, I get the mail and password from the user. Everything your question is working, but I can only print the e-mail address and password as session. I want to print the company name and the user's name. but I can't print. Can you help me

Ответить
@jeremiahphiri1798
@jeremiahphiri1798 - 15.11.2022 10:39

Thanks well simplified. ZAMBIA

Ответить
@t.dstatus8125
@t.dstatus8125 - 06.07.2022 06:33

super

Ответить
@aamanmujawar7055
@aamanmujawar7055 - 22.04.2022 07:28

i am try this code but its not working do not verfiy database values

Ответить
@thuongtrinh9364
@thuongtrinh9364 - 25.12.2021 20:43

Thank you so much sir

Ответить
@love4ever026
@love4ever026 - 05.09.2021 21:00

Love u man!!! my SESSION variables wouldnt be readable every time it moved from login.php to update.php.. i was pissed for 4 hrs, i saw that u have called function session_start() in new page as well.. i did same and it worked!!!

Ответить
@antoniofuller2331
@antoniofuller2331 - 23.08.2021 19:58

You got my sub

Ответить
@MauR3i
@MauR3i - 04.06.2021 04:51

Can you show the database creation ?? like .. your github doesn't have exported db file

Ответить
@zekkxi
@zekkxi - 22.02.2021 02:56

Thanks bro, u helped me a lot!!

Ответить
@shinevisionsv
@shinevisionsv - 07.02.2021 19:14

Your code is SUPER unsafe. First of all you should use SQLI STATEMENTS because with your code people can use the SQL Injection attack.

ALSO NEVER STORE PASSWORDS AS PLAIN TEXT! Hash them with the BUILD-IN PHP function!!!! its LITERALLY 1 function more!!!! ( password_hash($PASSWORD) )


PLEASE!
NO ONE USE THIS CODE ON AN ACTUAL PROJECT!!!!

Ответить
@marksuuuu
@marksuuuu - 28.01.2021 07:55

nice video , but can i ask how to fetch other data other than user and password?.

Ответить
@luciano7981
@luciano7981 - 24.11.2020 12:12

my code gives an error: it doesnt seems to know num_rows that you use in the tutorial.

Ответить
@RyuuzakiJulio
@RyuuzakiJulio - 01.11.2020 10:00

Perfect for SQL Injection attacks.

Ответить