hey. script doesnt work with files. when i made it in one file, index.php it was working but, when i seperated the files as login,index,logout it wasnot working anymore. and i though i made a mistake so i downloaded your files but they didnt work too. i cannot logout and whatever i write to login, it doesnt matter, i just login succesful :p please take a look to files and give answer. your lessons are cool man i hope u fix that, im waiting for answer.
i connect to my server with no errors, but nothing happens, login is there but nothing happens with submit or login echos zero?? i don't have any errors??
@lernedman i think it might be your $db_user because youve put 'my database name' in twice, $db_user is actually the user name of the person wanting to gain access to the database e.g. in this vid his username is 'bob', hope that helps, even though you posted that ages ago!
Its a great program you should take time to learn it it helps in finding errors in scripts. You can do the old fashion way with note pad, but no line count or error reporting.
Fantastic, am addicted to learning php and these videos are the only way to learn. Many thanks Joseph. Wondered if you also used Ubuntu as I saw the icon on the menu bar. Thats what I use
To anyone having issues with the logout not working just remove the first if statement from the logout file. He's asking the code to GET logout but logout was never assigned or sent to the script. So it won't ever work like that. Remove if (isset($_GET['logout']))
{ and the last } from the logout script and it will work. ;)
Hi Joseph great tuts, just to let you know you have an embedded Trojan on your website Trojan-Clicker.JS.Agent.h that keeps being picked up by kaspersky antivirus. Keep the tuts coming. Any chance of more pratical tut as to how to make log in useful. e.g Your client log in on your website. I want my customers to log in and then access theie own area on the site. Many thanks
I downloaded 'your' 3 .php pages and it's still not letting me log back in after I've logged in the first time. Index.php 'login' takes me to "You are logged in: Logout". When I click 'logout' it takes me to logout.php (which is correct). If I attempt to go back to index.php it still says "You are logged in: Logout". So I can't log out in order to see the Username & Password text fields boxes again.
I cannot log out. When I click 'logout' it takes me to logout.php which is blank. If I then go back to index.php it says I am still logged in. I'm trying to read it myself and understand what's going on but can't :(
I seem to be having problem connecting to the datebase.... it says second error message you created. It dies on selecting table. Am using apache server on my computer, I named database mysite and table 'users'. But its not connecting.
I tried " $db_host = 'localhost'; $db_user = 'root'; $db_pass = ''; $db_db = 'users'; ", and even tried downloading your code but still it cant connect select table... so I dont know whats going on. Any help would be great thanks! Thanks a lot for showing us these tutorials aswel!
hey. script doesnt work with files. when i made it in one file, index.php it was working but, when i seperated the files as login,index,logout it wasnot working anymore. and i though i made a mistake so i downloaded your files but they didnt work too. i cannot logout and whatever i write to login, it doesnt matter, i just login succesful :p please take a look to files and give answer. your lessons are cool man i hope u fix that, im waiting for answer.
mcyegen55 1 year ago
i can log in no matter what i put in the boxes. How can i make sure its password protected?
10inchpeacock 1 year ago
Hi can u do users profile page that users can send pm ,comment each other pictures, and have info about them?
kaeleon1111 1 year ago
hey
I got lost around 2:45
I set up the database,
then I opened the files and checked through them with your video.
Where I'm lost is
1) linking my scipt with the mySQL from my XAMPP database
2) testing the username and password on XAMPP as shown 2:45
Thank you
graphiccommer 1 year ago
i dont understand what i'm doing wrong!
i'm using an online server connected to mysql...
i've change:
$db_host = my host;
$db_user = my database name;
$db_pass = my password;
$db_db = my database name;
i connect to my server with no errors, but nothing happens, login is there but nothing happens with submit or login echos zero?? i don't have any errors??
anyone got any tips??
lernedman 1 year ago
@lernedman i think it might be your $db_user because youve put 'my database name' in twice, $db_user is actually the user name of the person wanting to gain access to the database e.g. in this vid his username is 'bob', hope that helps, even though you posted that ages ago!
joshmizzle 1 month ago
thanks
ellac007 1 year ago
hey what program are you using?
vpklotar 2 years ago
He is using dreamweaver best program i have ever came across in web development
techatyou 2 years ago
i had Dreamweawer before but i dident understand it...
vpklotar 2 years ago
Its a great program you should take time to learn it it helps in finding errors in scripts. You can do the old fashion way with note pad, but no line count or error reporting.
techatyou 2 years ago
ok, thanks
vpklotar 2 years ago
Fantastic, am addicted to learning php and these videos are the only way to learn. Many thanks Joseph. Wondered if you also used Ubuntu as I saw the icon on the menu bar. Thats what I use
kaptinook 2 years ago
i'm confused.
rslylmz 2 years ago
Can login regardless of the username or password??
crannyst 2 years ago
What do you mean exactly ?
Session01Hijack 2 years ago
0:47
$_SESSION['error'] = 'login successful';
That's confusing :D
modernclics 3 years ago
To anyone having issues with the logout not working just remove the first if statement from the logout file. He's asking the code to GET logout but logout was never assigned or sent to the script. So it won't ever work like that. Remove if (isset($_GET['logout']))
{ and the last } from the logout script and it will work. ;)
UGFrostByte 3 years ago
Never mind my previous comment. I am also having the same problem as jrox007.
On a good note, your videos are great learning tools!
cheeser83 3 years ago
Don't we need to access the table name somewhere??
cheeser83 3 years ago
i got the same problem with jrox..
hmm.. whats wrong with the code?
also i can log in even without the registered username and password..
for example..
i just type test at the username and password field..
when i press log in then i can login even there is no "test" username and password at the database :(
ds008 3 years ago
Hi Joseph great tuts, just to let you know you have an embedded Trojan on your website Trojan-Clicker.JS.Agent.h that keeps being picked up by kaspersky antivirus. Keep the tuts coming. Any chance of more pratical tut as to how to make log in useful. e.g Your client log in on your website. I want my customers to log in and then access theie own area on the site. Many thanks
gavinjary 3 years ago
I downloaded 'your' 3 .php pages and it's still not letting me log back in after I've logged in the first time. Index.php 'login' takes me to "You are logged in: Logout". When I click 'logout' it takes me to logout.php (which is correct). If I attempt to go back to index.php it still says "You are logged in: Logout". So I can't log out in order to see the Username & Password text fields boxes again.
jrox007 3 years ago
I cannot log out. When I click 'logout' it takes me to logout.php which is blank. If I then go back to index.php it says I am still logged in. I'm trying to read it myself and understand what's going on but can't :(
jrox007 3 years ago
Download the zip file located at the link. It has logout.php
gorilla3d 3 years ago
very helpful series of videos...u must know that i found this more helpful than my classes or books!
god bless youtube and awesome web developers like yrself!
so..the burning question...what's next? 'how to register' page?
guruji01 3 years ago
I seem to be having problem connecting to the datebase.... it says second error message you created. It dies on selecting table. Am using apache server on my computer, I named database mysite and table 'users'. But its not connecting.
TheaDragonSpirit 4 years ago
I tried " $db_host = 'localhost'; $db_user = 'root'; $db_pass = ''; $db_db = 'users'; ", and even tried downloading your code but still it cant connect select table... so I dont know whats going on. Any help would be great thanks! Thanks a lot for showing us these tutorials aswel!
TheaDragonSpirit 4 years ago
are you using XAMPP?...in that case, you will need to make sure that mysql server is running from the XAMPP control panel.
guruji01 3 years ago
how do we save this to mysql database?
videoasitis 4 years ago