PHP MySQL Login Tutorial - Check if Username Exists

preview_player
Показать описание
In another PHP MySQL login tutorial I'll teach you how to check if the users username exists already before it's created. This will stop multiple users from having the same username.

Рекомендации по теме
Комментарии
Автор

BROTHER U JUST SAVED MY LIFE, thank you very much, i watched most of urs tutorials and i have learned php and mysql like never before !

OdinMKD
Автор

Can u please help me as I have an error saying Call to undefined function mysql_connect () in login. Php on line 6

rajesh
Автор

Nice one, we need more people like you. Thank you

absolutelyangel
Автор

Thanks very much for this tut! it helped me solved a problem that disturbed me for more than 2 hours.

AbdellahRamadan
Автор

Thanks alot. it worked smart and have been of help to me. God bless u

hongomjoshua
Автор

Thanks. Was looking for something like the mysql_num_rows. :)

alexanderbulko
Автор

100% Perfectly Worked Bro !! :D
Thank U Very Much Bro !! :D

KistlakRajapakshaSevenNet
Автор

Thank you for this! Easily explained and simple...

martinluik
Автор

hii we used this local server then working properly but send the host then not working perfect header.

dhananjayprajapati
Автор

Thanks very much...have been looking for the soltion.

shaikshafi
Автор

I keep getting the duplicate entry method and it doesn't get to the check rows part, what should I do? please help lol. Duplicate entry 'rudolph' for key 'username'

danielpettus
Автор

How do i check if user ID exist or not ? Need help please. So far I did this

public function isUserIDValid($user_id){

return filter_var($user_id, FILTER_VALIDATE_REGEXP);
but i'm getting "filter_var(): 'regexp' option missing" in and also invalid ID. How do I solve this problem ? TQ

chocolatestealer
Автор

hey man you are going good. but what about the database after inserting the same name which is "admin". i wanted to show your database at that time.

fasihsheikh
Автор

Excellent bro!! It is working fine!! expecting more such good videos.

rajs
Автор

How can I call the Firstname from one page to other page using $_SESSION? I just want to display "Welcome".$_SESSION['Name']

stephanyjubill
Автор

Thanks a bunch for this. I'm having some trouble though. On my website can simply enter anything you'd like into the login field and it will 'log you in.' How would I heck to see if the login, password and email match an entry in the database and deny the user access if they don't have an account? Maybe you already covered that and I just missed it.

RaineZahra
Автор

thanks for sharing ur code really helped me a lot....:)

Anita
Автор

Salamat HAHAH! Nakatulong ka ng malaki

patrickmoren
Автор

simple, straight and forward thanks for the work!!

lourencemabasa
Автор

Can you help me this query("SELECT * FROM users WHERE username='$name' ");
returns zero rows, although there is that user in database.So i always get 0 rows but i should get atleast 1.

Nemanja