PHP Lesson 10: MySQL User Login – Part 3
code @ http://www.gorilla3d.com/v2/Tutorial_php_mysql_user_login
Duration : 0:5:55
code @ http://www.gorilla3d.com/v2/Tutorial_php_mysql_user_login
Duration : 0:5:55
Categories: PHP Coding Tags: coding, database, Development, form, get, input, login, logout, MYSQL, PHP, post, programming, security, Web
Your Site Sample is Stephen Fry proof thanks to caching by WP Super Cache
Hi can u do users …
Hi can u do users profile page that users can send pm ,comment each other pictures, and have info about them?
hey
I got lost …
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
i dont understand …
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??
thanks
thanks
ok, thanks
ok, thanks
Its a great program …
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.
i had Dreamweawer …
i had Dreamweawer before but i dident understand it…
He is using …
He is using dreamweaver best program i have ever came across in web development
hey what program …
hey what program are you using?
Fantastic, am …
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
i’m confused.
i’m confused.
What do you mean …
What do you mean exactly ?
Can login …
Can login regardless of the username or password??
0:47
$_SESSION[' ...
0:47
$_SESSION['error'] = ‘login successful’;
That’s confusing
To anyone having …
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.
Never mind my …
Never mind my previous comment. I am also having the same problem as jrox007.
On a good note, your videos are great learning tools!
Don’t we need to …
Don’t we need to access the table name somewhere??
i got the same …
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
Hi Joseph great …
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’ …
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.
Download the zip …
Download the zip file located at the link. It has logout.php
I cannot log out. …
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
very helpful series …
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?
are you using XAMPP …
are you using XAMPP?…in that case, you will need to make sure that mysql server is running from the XAMPP control panel.
I tried ” $db_host …
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!