DB Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

SELECT * FROM `user` the_table WHERE the_table.userid = DB Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

SELECT * FROM `user` the_table WHERE the_table.userid = forgot password script php help? - iTechForums
Login
Search
Welcome to the iTechForums.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 1
Members:
Number of Users Online:
Welcome to our newest member,
Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2008, 03:58 AM
zalez21 zalez21 is offline
Junior Member
 
Join Date: May 2008
Posts: 13
Default

forgot password script php help?


have a register/forgott password script and i want to know how i can make the message " your password has been sent to your email"
appear n the same pag. Right now i fowads to i white page with nothing but the message. pls hepl thanks
>?php
require_once("connect.php");
$email = $_POST['email'];

if($email == NULL)
{
} else {
$getpassword = mysql_query("SELECT password FROM members WHERE email = '$email'");
while($res=mysql_fetch_object($getpass...
{
$password = $res->password;
}

if($password == NULL)
{
$errd = "<div style=\"color:red;\"><center><b>Incorrec... email format -or- e-mail does not exist in our database, try again!</b></center></div>";
} else {
$to = $email;
$subject = "Your www.mysite.com password";
$headers = "From: admin@mysite.com\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\n";
$message = "Here is your password for the website www.cusapp.com

Password: $password


Best Regards!
";
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php password encryption MORE secured? smile_ PHP 1 05-15-2008 03:50 PM
how do you overide the computers password? Ryan H Security 0 05-10-2008 05:41 AM
php register/forgott password script? zalez21 PHP 2 05-09-2008 10:57 PM
forgot username and password ascript php/mysql help ? zalez21 PHP 0 05-06-2008 10:41 PM
i have forgot my administrator password in window vista starter plz plz... coolbuddy_vishal_dude Security 0 05-06-2008 09:02 PM

Your Ad Here

All times are GMT. The time now is 10:44 AM.