Alex would it be better to test the length before doing the query? Would this reduce the server load? Each key stroke being a query seem a lot if there are a lot of people connecting?
@phpacademy Just to let you know mate. I'm not sure if it's a problem just happening to me, but, if you have the 'DOCTYPE html' stuff in your header, the 'html' part stops this code from working.
However, I love the tutorial, it's really got me wanting to learn Javascript, which has always been my biggest hate to web development because it looks so confusing when you look at websites source codes.
any idea why this would be working on linux based systems (mac/android) and not on a Windows (XP or Vista machine)? I am hosting this on a linux server. I am new at this and looking for help.
Alex, we have never met and perhaps we will never meet who knows. I am in USA. But,I must say, you have help me a great deal. I never thought I could have built a website from scratch. I have paid thousands of dollars to developers. Man!! you doing a job that is greatly and hugely needed. I will make sure i spread the words around.
Alex, we have never met and perhaps we will never meet who knows. I am in USA. But,I must say, you have help me a great deal. I never thought I could have built a website from scratch. I have paid thousands of dollars to developers. Man!! you doing a job that is greatly and hugely needed. I will make sure i spread the words around.
Alex, we have never met and perhaps we will never meet who knows. I am in USA. But,I must say, you have help me a great deal. I never thought I could have built a website from scratch. I have paid thousands of dollars to developers. Man!! you doing a job that is greatly and hugely needed. I will make sure i spread the words around.
I had it working but after typing the rest of the code. even after removing the new code after the displaying data from the check.php file it just stopped working?
All cool, but is not so much performance friendly when you have a big database if you are going to make a connection everytime the user presses a key, it should be on blur imo, and adding a wait period after checking would be useful as well. With a database of almost a million users like mine, it would kill the server, specially if those bad intentioned users play with it.
Hello Alex , I have been watching your videos for a while and I must say you do a great job explaining while you te4ach PhP. Much appreciated. I'm not sure if you have a tutorial; on this already but i wasnt able to find it. Would you mind doing a simple video for passing XML using CURL in PhP? Thanks
Very good! I have tried to turn several people to your channel in hopes of helping them. It's awesome to see that when a suggestion is made about a tutorial you actually do listen to us and go forth. Thanks again!
@phpacademy nice tutorial Alex but you can use $(function(){ ... }); instead of $(document).ready(function(){ ... }); it way shorter and equivalent as well
@gonzo191 its best to do a document check so that the jquery code isnt executed before the page is loaded. e.g. how can you animate a table if the table isnt on the page yet ?
@gonzo191 its best to do a document check so that the jquery code isnt executed before the page is loaded. e.g. how can you animate a table if the table isnt on the page yet ?
good tut but in the check.php i would write else if ($check_num_rows>=1) because if there are two names with same beginging then there will be nothing. like: database: phpacademy phpacadami user insert: phpacade => there will be nothing tell me if i'm wrong
is there a way for jquery to call a function in a php file called login.class.php. so i just want to have everything in one file but different functions.
Ajax: When you combine HTML and Javascript to work in harmony. Pretty much 95% of Javascript is done this way so the term is redundant IMO. Same thing as DHTML.
jQuery: a Javascript library filled with essential functions. Hands down the most useful library for Javascript.
hey Alex, you're no longer taking care of the video length. Please divide the videos in parts if possible. Its difficult to download such a big file at once. thanks.
@shaunno2009 well, downloading is the main issue, here in Pakistan, load shedding is a big issue, the video is in the download process and the power goes out, and i have to download the whole thing again. i know its easier to watch the whole video at once, but download it is a main issue.
@nuwaus well, downloading is the main issue, here in Pakistan, load shedding is a big issue, the video is in the download process and the power goes out, and i have to download the whole thing again. i know its easier to watch the whole video at once, but download it is a main issue.
THANK YOU!!! Awesome script and video!!
mjohnson0321 1 month ago
thanks :)
kudafoolhu 5 months ago
Amazing & very comprehensive tutorial among thousand tut, its that what i was looking for . thax a lot & carry on...........
champack2003 5 months ago
you should make a site where you can download all this
to123156 6 months ago
nice video thnxxx.......
ANURAGSTAR 6 months ago
good teaching
i liked how you made it and thank u
MsMaxmax121 6 months ago
good teaching
MsMaxmax121 6 months ago
Comment removed
dracoztec 6 months ago
Alex would it be better to test the length before doing the query? Would this reduce the server load? Each key stroke being a query seem a lot if there are a lot of people connecting?
youngbmale 6 months ago
thank you alex for ur awesome videos :)
MrKuntalstar 6 months ago
username : form.username.value or username : $('#username_input').val() is not working.....
rohitbellary 7 months ago
I wrote this code but it did not work..
If you have that problem, here the solution:
Because:
"username: form.username.value"
This row is not working.
Change this row this:
username: $('#username_input').val()
And it is going to work :)
Nice job Alex! ;)
materally 7 months ago
@phpacademy Just to let you know mate. I'm not sure if it's a problem just happening to me, but, if you have the 'DOCTYPE html' stuff in your header, the 'html' part stops this code from working.
However, I love the tutorial, it's really got me wanting to learn Javascript, which has always been my biggest hate to web development because it looks so confusing when you look at websites source codes.
AndyKersy 7 months ago
any idea why this would be working on linux based systems (mac/android) and not on a Windows (XP or Vista machine)? I am hosting this on a linux server. I am new at this and looking for help.
dudesnamehere 7 months ago
where to download the jqiery.js ?
nicozarris16 8 months ago
I am not sure why the check.php file doesn't load. Can someone please help me? Thanks!
saikirakiva 8 months ago
@saikirakiva Actually found out why. Miss a letter..haha..
saikirakiva 8 months ago
what's the difference, ability wise, from jquery and ajax?
Zuberguber105 8 months ago
people width undifined index just put in
check.php if(isset($_POST['username'])){
//add the rest of your code here
}
marte197a 9 months ago
Notice: Undefined index: username , Why,plz?
tuanvietND 10 months ago
Good tutorial i was looking for some like that a long tie thx you so much good tutorial.
rapblack2 10 months ago
$username = $_POST['xyz'];
Gives me ERROR
xyz Undefined
WHY?
anticlimax18 10 months ago
Man!! you doing a job that is greatly and hugely needed. I will make sure i spread the words around.
God bless - and keep on keeping on!!
balanweb 11 months ago
This has been flagged as spam show
Alex, we have never met and perhaps we will never meet who knows. I am in USA. But,I must say, you have help me a great deal. I never thought I could have built a website from scratch. I have paid thousands of dollars to developers. Man!! you doing a job that is greatly and hugely needed. I will make sure i spread the words around.
God bless - and keep on keeping on!!
balanweb 11 months ago
This has been flagged as spam show
Alex, we have never met and perhaps we will never meet who knows. I am in USA. But,I must say, you have help me a great deal. I never thought I could have built a website from scratch. I have paid thousands of dollars to developers. Man!! you doing a job that is greatly and hugely needed. I will make sure i spread the words around.
God bless - and keep on keeping on!!
balanweb 11 months ago
Alex, we have never met and perhaps we will never meet who knows. I am in USA. But,I must say, you have help me a great deal. I never thought I could have built a website from scratch. I have paid thousands of dollars to developers. Man!! you doing a job that is greatly and hugely needed. I will make sure i spread the words around.
God bless - and keep on keeping on!!
balanweb 11 months ago
my falt i correct it and its working thanks !!
ricsurfpro 1 year ago
I hav a question i made it here and its ok but i need to insert things in my database
and wen i use action="insert.php" at form jquery do not work.
ricsurfpro 1 year ago
all php programmers i invite you to come and visit vzforumz.webs.com the newly found programming community.
TheOriginalVZdemon 1 year ago
Your work continues to inspire me. You're a great teacher. Please donate to Alex! I know I did.
BugsVHumans 1 year ago
with this code if a username with spaces after will be different to the same username without spaces
could you thumb up this comment so it gets recognised !!!
Thanks
Hattlen 1 year ago
You are a life saver alex!!!
harleybalo 1 year ago
Excellent, once again alex!
ChrisSnip 1 year ago
Thanks, Great tutorial.
ahmedihmeid 1 year ago
GR88888888888888888 Tutorial ... very well explained / broken down .. keep up the good work
MrFreshShizzle 1 year ago
Comment removed
SwampDragons 1 year ago
This has been flagged as spam show
What is your choice here Russian ladies gettop5.info
zoebucvs 1 year ago
great tutorial, but does not work on firefox :/
RomanovichCS 1 year ago
@RomanovichCS
It does work on my fireworks.
harleybalo 1 year ago
I had it working but after typing the rest of the code. even after removing the new code after the displaying data from the check.php file it just stopped working?
ti07shadow 1 year ago
Comment removed
Samr3D 1 year ago
All cool, but is not so much performance friendly when you have a big database if you are going to make a connection everytime the user presses a key, it should be on blur imo, and adding a wait period after checking would be useful as well. With a database of almost a million users like mine, it would kill the server, specially if those bad intentioned users play with it.
nicksalad 1 year ago
Thx man, this is very helpfull!
DronElektron 1 year ago
form.username.value can be replaced by $(this).val()
Since you're already using JQUERY then why do you still mix it with DOM? JQUERY can do everything in shortcuts.
reigngel 1 year ago 2
Very good tutorial..
I tried in firefox and it dosen't work!
The error message is "undefined formlogin"
However, when I'm login in my website (with php) it works.
Why? Do you have any idea?
guilohead 1 year ago
Comment removed
daytodaydaniel 1 year ago
not working on firefox...any idea?
extjac 1 year ago
Very good tutorial, a very powerful tool too
mclaarson 1 year ago
you are the best !
buhajus 1 year ago 8
@buhajus I'm not the best, but I try! Thank you.
phpacademy 1 year ago 10
@phpacademy
no you are :D
bohterham 11 months ago
@phpacademy Yes you are man. Great job you're doing. I've learned everything I know about php from you :-)
SlobodanV1984 6 months ago
@phpacademy YOU ARE THE BEST. DON'T SAY I AM NOT THE BEST!
stheodosiadis 1 month ago
you are the best !
buhajus 1 year ago
A hash mark "#" doesn't mean DIV, it means ID.
fastenterprises 1 year ago
Hey alex, i love your videos,
I just downloaded camtesia and im having trouble with the sound quality.
besides downloading it, do you do anything special to it to record ur videos?
How do you get such good sound quality?
JoWebsites 1 year ago
I have a question is it possible to use alert message if the username is unavailable?
seretsu545212 1 year ago
Thanks, this really helped me understand Jquery, wow it is amazing simple to implent.
wizzy9906 1 year ago
you could use $(this).val() instead of form.username.value to take the value
SaiyanJin85 1 year ago
Thanks, great tutorial :)
mylescomputer 1 year ago
thanks , great video. really really much easier than you'd think. :)
JonnyJC93 1 year ago
Can you make an autocomplete tutorial? Thanks!
BugsVHumans 1 year ago
Hello Alex , I have been watching your videos for a while and I must say you do a great job explaining while you te4ach PhP. Much appreciated. I'm not sure if you have a tutorial; on this already but i wasnt able to find it. Would you mind doing a simple video for passing XML using CURL in PhP? Thanks
joeydisessa 1 year ago
Brilliant!
Best tutorial ever, both explanatory and "project-wise"!
I mainly need the jQuery part for a letter counter but this will surely come in handy!
Keep it up!
MrEcaz 1 year ago
alex , how you get the jquery.js file? i know on google but got a bunch of them.
glfunkyspyspy 1 year ago
@glfunkyspyspy jquery.com
phpacademy 1 year ago
@glfunkyspyspy from jquery.com click on download. you'll get this file jquery-1.4.2.min.js but you can save it as jquery.js
latlov 1 year ago
@latlov ty
amosngweien1 1 year ago
thank you teaching
eddilink 1 year ago
Awesome tutorial! Still, it would be awesome to see how you can put data etc in the DB etc :D
xatic1 1 year ago
alex u are great!
budesliga22 1 year ago
great tutorial!, code you please put the sorce code on your forum?
shayat123456 1 year ago
Thanks Alex
mesuhas2010 1 year ago
Thank you!! very very helpful :)
willzurmacht 1 year ago
Very good! I have tried to turn several people to your channel in hopes of helping them. It's awesome to see that when a suggestion is made about a tutorial you actually do listen to us and go forth. Thanks again!
fastsol 1 year ago
great
rluximon 1 year ago
This has been flagged as spam show
300th view :D:D
Btw alex. Please read the message i sent you :)
katt157 1 year ago
Comment removed
baturbros 1 year ago
:) Thanks for the tutorial
Timzy921 1 year ago
This has been flagged as spam show
please can u respond to my question on ur first register n login tutorial im stuck with a particular error. Thanx phpacadmy!
DANJUMA9 1 year ago
where did you learned jQuery from is there any book or online course ?
machine1112 1 year ago
@machine1112 I learnt it from Google. I've only been using it for a few days. Practice practice, and you'll get the hang of how easy it is to use.
phpacademy 1 year ago 3
@phpacademy its one of the easiest languages to use I think
shaunno2009 1 year ago 10
@phpacademy nice tutorial Alex but you can use $(function(){ ... }); instead of $(document).ready(function(){ ... }); it way shorter and equivalent as well
gonzo191 1 year ago
@gonzo191 its best to do a document check so that the jquery code isnt executed before the page is loaded. e.g. how can you animate a table if the table isnt on the page yet ?
JonnyJC93 1 year ago
This has been flagged as spam show
@gonzo191 its best to do a document check so that the jquery code isnt executed before the page is loaded. e.g. how can you animate a table if the table isnt on the page yet ?
JonnyJC93 1 year ago
@machine1112 Many tutorials on the jquery.com website :D
itsbrad212 1 year ago
@machine1112 you can learn it at jquery's site jquery.com or just google it
gonzo191 1 year ago
would it be possible to get the source code?
SuperSimar1 1 year ago
classensoft 1 year ago
@classensoft The mysql db require it to the WHERE data to be exactly the in db one.
katt157 1 year ago
great tutorial, thanks Alex.
stanisic1979 1 year ago
is there a way for jquery to call a function in a php file called login.class.php. so i just want to have everything in one file but different functions.
leavemealone300435 1 year ago
your awesome.
SuperSimar1 1 year ago
Wow, extremely useful! Thanks.
klassictechtutorials 1 year ago
also, could you please explain the difference between Ajax and jQuery?
9081178 1 year ago
@9081178 They are completely seperate things.
Ajax: When you combine HTML and Javascript to work in harmony. Pretty much 95% of Javascript is done this way so the term is redundant IMO. Same thing as DHTML.
jQuery: a Javascript library filled with essential functions. Hands down the most useful library for Javascript.
vlogger3000 1 year ago
@vlogger3000 hmmm.... thanks.... :)
9081178 1 year ago
@vlogger3000 "When you combine HTML and Javascript to work in harmony." No..? It's nothing related to that.
cheatonly2win 1 year ago
hey Alex, you're no longer taking care of the video length. Please divide the videos in parts if possible. Its difficult to download such a big file at once. thanks.
9081178 1 year ago 4
@9081178 Sorry about that. In future I'll try and divide them up.
phpacademy 1 year ago 3
@phpacademy I actually prefer it. This way we know how long to expect the video to be.
MovieTrailersYay 1 year ago
@9081178 why is shorter videos better ?
wideload123 1 year ago
@9081178 I prefer the full-length video's. No more looking for parts 2+3 of the relevant tutorials.
Keep them this way please Alex, it's much better and more organized.
DY357LX 1 year ago 3
@DY357LX me too.
leavemealone300435 1 year ago
@9081178 No.. That's one benefit of being a youtube partner, being able to upload videos longer than 10 minutes.
cheatonly2win 1 year ago
@9081178 just leave it for 5 - 10mins then come back to it. I have no problem with it being a long video but I have a good connection speed.
shaunno2009 1 year ago 11
@shaunno2009 well, downloading is the main issue, here in Pakistan, load shedding is a big issue, the video is in the download process and the power goes out, and i have to download the whole thing again. i know its easier to watch the whole video at once, but download it is a main issue.
9081178 1 year ago
@9081178 I see very understandable I know how annoying it is when then power goes off when your in the middle of something :P.
shaunno2009 1 year ago
@shaunno2009 yeah dude, it sure is annoying.
9081178 1 year ago
I thought that only happens here in uganda...
olukabruno 1 year ago
@9081178 Don't you think all in one video is easy enough?
nuwaus 1 year ago
@nuwaus well, downloading is the main issue, here in Pakistan, load shedding is a big issue, the video is in the download process and the power goes out, and i have to download the whole thing again. i know its easier to watch the whole video at once, but download it is a main issue.
9081178 1 year ago
3rd!
Oblivionator8000 1 year ago
YAY FIRST :D
cooldude3010 1 year ago
@cooldude3010 lol
detroid89 1 year ago