Bastien Koert wrote:
On Thu, Feb 18, 2010 at 4:40 PM, Ron Piggott wrote:
I am wondering what others do for a login query. I think there could be
two results: correct e-mail & password; correct e-mail & wrong password
So far my login query is:
SELECT * FROM `member` WHERE `email` = '$my_email
Buddy, you are talking about to check if the password is wrong or not.
Usually in the login query you check both the user name or email in your
case and the password. If you just check the password it will become very
easy to hack any user account.
On Thu, Feb 18, 2010 at 4:40 PM, Ron Piggott wrote:
> I am wondering what others do for a login query. I think there could be
> two results: correct e-mail & password; correct e-mail & wrong password
>
> So far my login query is:
>
> SELECT * FROM `member` WHERE `email` = '$my_email' AND `pass` L
I am wondering what others do for a login query. I think there could be
two results: correct e-mail & password; correct e-mail & wrong password
So far my login query is:
SELECT * FROM `member` WHERE `email` = '$my_email' AND `pass` LIKE
BINARY '$my_password' LIMIT 1
This wouldn't tell me if the
Thanks Miles.
That works nicely.
Regards
-Original Message-
From: Miles Thompson [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 10:29 PM
To: [email protected]
Subject: RE: [PHP-DB] Login script help
When user has authenticated successfully, start a session with an
M
To: Haig Dedeyan; [email protected]
Subject: RE: [PHP-DB] Login script help
why not just create a simple single logon page and not include
itthen on
sucessful login, redirect the user to the index page?
bastien
>From: "Haig Dedeyan" <[EMAIL PROTECTED]>
>To:
>Subjec
[PHP-DB] Login script help
why not just create a simple single logon page and not include
itthen on
sucessful login, redirect the user to the index page?
bastien
>From: "Haig Dedeyan" <[EMAIL PROTECTED]>
>To:
>Subject: [PHP-DB] Login script help
>Date: Thu,
why not just create a simple single logon page and not include itthen on
sucessful login, redirect the user to the index page?
bastien
From: "Haig Dedeyan" <[EMAIL PROTECTED]>
To:
Subject: [PHP-DB] Login script help
Date: Thu, 21 Dec 2006 16:36:11 -0500
Hi everyone,
M
Hi everyone,
My 1st attempt at creating a login script isn't going so good, so
hopefully someone can help me out.
The login script itself works fine but when I include it into a web
page, the login.php script shows up but the entire index.html page also
shows up.
I just want people to log in bef
On Nov 10, 2005, at 7:21 AM, [EMAIL PROTECTED] wrote:
Need some ideas/opinions on a project I have.
The project is for a Radio Station (online one) where DJ's can
login to the site and do stuff and listeners can listen in live to
the live feeds.
Now I downloaded a password protected code
Hi,
Need some ideas/opinions on a project I have.
The project is for a Radio Station (online one) where DJ's can login to the
site and do stuff and listeners can listen in live to the live feeds.
Now I downloaded a password protected code that uses MySQL to store the info
but it fails each
Hi,
Need some ideas/opinions on a project I have.
The project is for a Radio Station (online one) where DJ's can login to the
site and do stuff and listeners can listen in live to the live feeds.
Now I downloaded a password protected code that uses MySQL to store the info
but it fails each
Err...
As usual I forgot the most important part...
Add
session_start()
just above the
if($_POST['login']) {
row, or it won't work at all.. ;)
Or rather, it'll work, but no sessions will be saved.
Mike
On Apr 27, 2004, at 08:48, Mikael Grön wrote:
Here you go:
Table:
ID Login PW
Here you go:
Table:
ID Login PW Admin
1 admin abc123 1
2 normal bcd234 0
3 normal2 cde345 0
PHP:
[BOF]
if($_POST['login']) {
$result = mysql_query("select * from users where login = '" .
$_POST['login'] . "'") or die(mysql_error());
if (mysql_nu
This is kind of a big thing. Email me and I'll give you instructions/tips
on making it.
- Original message -
From: "andy amol" <[EMAIL PROTECTED]>
To: "php php" <[EMAIL PROTECTED]>
Date: Mon, 26 Apr 2004 17:15:27 -0700 (PDT)
Subject: [PHP-DB] login s
hi,
does anyone have a login script which will take data from the table and decide
whether the given user is a admin or a normal user.
thanks in advance.
Also if there is some help on session variable I would like to know.
-
Do you Yahoo!?
Win
IL PROTECTED]>
Sent: Thursday, 12 June, 2003 03:20
Subject: [PHP-DB] Login session - browser/computer? problem
My boss can't seem to login at all through his laptop to my website.
The login process is as follows: from the index.php the person login goes to
handler/login.php which checks with
My boss can't seem to login at all through his laptop to my website.
The login process is as follows: from the index.php the person login goes to
handler/login.php which checks with the databae, if the user is authorized then put a
session variable called "loginid" and redirect the website to a
Hi,
This message is regarding my original post of the
following subject/topic:
[PHP-DB] ?? Login problems ??
I wish to say that the problem has been fixed.
Thankyou to those people that helped me with the
problem via this message board and direct email.
I no longer require help on this topic
Try again. Post the exact error you're getting (what
you're getting is
most likely just a Warning) and a _FEW_ lines around
where the error is
at.
The exact error is:
Notice: Undefined variable: Username on line 86
With the given error it mucks up my username/password
form by putting incorrect
> I have this script that logs people into a website
> using cookies. On my linux web server it works fine
> but when I downloaded the Windows version of mysql for
> my personal PC to do offline work I get an error with
> the identical file.
>
> The error is on line 86 undefined username
>
> But
Hi,
I have this script that logs people into a website
using cookies. On my linux web server it works fine
but when I downloaded the Windows version of mysql for
my personal PC to do offline work I get an error with
the identical file.
The error is on line 86 undefined username
But on my linux
> I am curious about what you guys may have along the lines of
best
> practices for forwarding from a URL to a login, and then jumping back
to
> the
> original URL automatically. I have several separate applications that
all
> need to utilize the same login mechanism. I want the user to be
in_status($PHP_AUTH_USER,'Y');
}
}
liability_statement_check();
return(TRUE);
} else {
# USER NOT KNOWN
auth_header($PHP_AUTH_REALM);
}
}
Gary Every
Sr. UNIX Administrator
Ingram Entertainment
(615) 287-48
I am curious about what you guys may have along the lines of best
practices for forwarding from a URL to a login, and then jumping back to the
original URL automatically. I have several separate applications that all
need to utilize the same login mechanism. I want the user to be able to
PROTECTED]
-Original Message-
From: SELPH,JASON (HP-Richardson,ex1) [mailto:[EMAIL PROTECTED]]
Sent: sexta-feira, 31 de Janeiro de 2003 17:52
To: Matt; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] login script
try:
http://www.hotscripts.com/PHP/Scripts_and_Programs/User_Authentication/
there ar
PROTECTED]
-Original Message-
From: SELPH,JASON (HP-Richardson,ex1) [mailto:[EMAIL PROTECTED]]
Sent: sexta-feira, 31 de Janeiro de 2003 17:52
To: Matt; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] login script
try:
http://www.hotscripts.com/PHP/Scripts_and_Programs/User_Authentication/
there ar
try:
http://www.hotscripts.com/PHP/Scripts_and_Programs/User_Authentication/
there are loads of pre done scripts you can reference.
Cheers
Jason
-Original Message-
From: Matt [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 11:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] login
Anyone have any suggestions on how to go about creating a solid login
script? I have a MySQL database with a field called "LoggedIn" that is by
default "NO" but I want it to turn to "YES" when the user logs in, and I
want it to turn back to "NO" when the user either logs out, or a certain
amount o
___
Ryan Marrs
Web Developer
Sandler & Travis Trade Advisory Services, Inc.
248.474.7200 x 183
248.474.8500 (fax)
www.strtrade.com
-Original Message-----
From: David [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:51 AM
To: [EMAIL PROTECTED
Thank You Jason for replying back.
I am still new to this and sometimes it is hard to ask question because I
don't know all the terms or how to word my problem.
Ok I switch my php.ini to error reporting to maximum (error_reporting =
E_ALL) and write off the bat I got this error message.
Notice
On Tuesday 17 December 2002 14:42, David wrote:
> Hello,
>
> I am pretty new to PHP and I am trying to create a admin login page so my
> client can view thier product line and orders. I have MySQL set-up
> properly and have data in it and I am able to view information from the db
> with no problem
Hello,
I am pretty new to PHP and I am trying to create a admin login page so my
client can view thier product line and orders. I have MySQL set-up properly
and have data in it and I am able to view information from the db with no
problem. I do all my testing on my local machine before I blast it
View the source in mozilla, it might just be suppressing the output
for whatever reason.
Adam
On Wed, 28 Aug 2002 [EMAIL PROTECTED] wrote:
>
>
> Hi there,
>
> I am experiencing a peculiar problem. I have recently moved a PHP / MySQL driven
> website I have been developin
Hi there,
I am experiencing a peculiar problem. I have recently moved a PHP / MySQL driven
website I have been developing from my linux box on to a live host. Everything
seemed to go smoothly apart from one peculiar problem. When I access the site
using Internet Explorer (so far I have tried 5.
i have sell.php page which requires loggin so i put in it:
http://$HTTP_HOST/auction/login.php";);
exit();
}
?>
then in login.php i have;
$sql = "SELECT * FROM registration WHERE username = '$username' and
password='$password'";
$result = mysql_query($sql,$conn);
if(@mysql_num_rows(
try header("Location : http://the.page.where.you.want.to.return ");
(search in phpmanual)
its me a écrit :
> there is a page that when user go to need to be looged in,so it automaticaly go back
>with him to loggin page but after login i want him to go back to the page he was
>in.how?
> u
there is a page that when user go to need to be looged in,so it automaticaly go back
with him to loggin page but after login i want him to go back to the page he was
in.how?
using history()? and how.
thanks guys
Rehab M.Shouman
ginal Message-
> From: W3bDevil [mailto:[EMAIL PROTECTED]]
> Sent: 11 November 2001 10:52
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] Login Script please?
>
>
> I have a server that doesn't allow external connections. They say its to
> "protect the data for me and my cust
I have a server that doesn't allow external connections. They say its to
"protect the data for me and my customers" (even though I don't actually
have any). Anyway, I've tried everything, and I'm going to start learning
PHP later this year, but I'm in a hurry here:
I've configured my database wit
Hello all,
I seem to be missing something with my login script,
I have a couple of issues:
1) When you do not enter any informaton, it will say:
"Please fill out all fields to proceed.
There seems to be a problem with the database."
Now, if i hit enter again it will say:
"Please fill out all fie
simple.
-Original Message-
From: andRie Is [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 9:13 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] login twice
Hello php-db,
anyone knows how to avoid user to login twice in different computer
?
for exam : User A login using compute
Hello php-db,
anyone knows how to avoid user to login twice in different computer
?
for exam : User A login using computer D, and then A go to computer
E and A login again. how to restrict A to login using computer E
when he have another session in computer D ?
,,,
ave a table storing userrnames and passwords and a seperate table storing
access levels.
-Original Message-
From: Ron Brogden [mailto:[EMAIL PROTECTED]]
Sent: 16 March 2001 20:18
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Login System with access levels
At 02:00 PM 3/16/2001 -0600, you
>
> This will permit the searcher to locate anything whereby the level is at
> $level or lower.
> -Original Message-
> From: Jordan Elver [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 16, 2001 1:28 PM
> To: PHP General Mailing List; PHP DB Mailing List
> Subjec
At 02:00 PM 3/16/2001 -0600, you wrote:
>First, I would NOT store passwords in a database. Rather, I'd store a hash
>based upon the password and username. Storing a password is dangerous as
>regards security.
Just to be a little picky and *not* to start an argument (discussion yes),
this reall
ED]]
Sent: Friday, March 16, 2001 1:28 PM
To: PHP General Mailing List; PHP DB Mailing List
Subject: [PHP-DB] Login System with access levels
Hi,
I've got a db with a username and password in it. I can let people log in,
like SELECT * FROM table WHERE username = username AND password = p
Hi,
I've got a db with a username and password in it. I can let people log in,
like SELECT * FROM table WHERE username = username AND password = password.
But how can I add an access level column so that I can have different levels
of security. So admin's can read everything, but users can only
48 matches
Mail list logo