note 47018 added to function.mysql-query
| From: | marsteam at zoznam dot sk | Date: | Sat, 30 Oct 2004 21:45:11 +0000 |
| Subject: | note 47018 added to function.mysql-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-79375@lists.php.net to get a copy of this message | ||
Please help me, how can I make something like this:
I have a registered users, but they some of them forgot their password. I need to make an automatic
e-mail formular that will e-mail them password:
I have done all, the main things are:
$users_password = mysql_query("SELECT password FROM users WHERE
email_address='$given_email'");
Email looks like:
-----------
Hi,
blablabla
Your Pasword is: $users_password
-----------
The main problem is that it looks like this:
-----------
Hi,
blablabla
Your Pasword is: 1
-----------
How can I get that password from database when querry return only 0 or 1? Please help me, i am
stunned.Thanks.
----
Manual Page -- http://www.php.net/manual/en/function.mysql-query.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47018
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47018&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47018&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47018&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47018&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47018&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47018&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47018&report=yes
Search -- http://master.php.net/manage/user-notes.php