Комментарии:
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
ОтветитьThanks well simplified. ZAMBIA
Ответитьsuper
Ответитьi am try this code but its not working do not verfiy database values
ОтветитьThank you so much sir
Ответить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!!!
ОтветитьYou got my sub
ОтветитьCan you show the database creation ?? like .. your github doesn't have exported db file
ОтветитьThanks bro, u helped me a lot!!
Ответить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!!!!
nice video , but can i ask how to fetch other data other than user and password?.
Ответитьmy code gives an error: it doesnt seems to know num_rows that you use in the tutorial.
ОтветитьPerfect for SQL Injection attacks.
Ответить