I have Some Passwords which contain some special and methimatical chracters like this password "HHE1134ƒ" if i want to generate password with php md5() then this not give me correct hashes like this "679b6dc6122a9c83ed31476ee82af36e".
So i have Java Script which can generate correct hash for my passwords But how can i store this value to mysql
my code is given below please Help Me.
$result = mysql_query("SELECT * FROM `table`") or die(mysql_error());
while ($row = mysql_fetch_assoc($result))
{
$user_id = $row['user_id'];
$firstname = $row['firstname'];
$lastname = $row['lastname'];
$spno = $row['spno'];
$password = $row['password'];
$tmp = "<script type='text/javascript'> document.write(MD5('".$password."'));</script>";
$query1="UPDATE `wp_110504users` SET `user_pass` = '$tmp' WHERE `user_login` = '$user_id'";
mysql_query($query1) or die(mysql_error());
}
this will give me error like
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 'text/javascript'> document.write(MD5('HW72'));' WHERE `user_login` = '0' at line 1
?>
Some one tell me use Ajax, Please tell me how can i use Ajax for this code can you give me an example .....
$userpassis never used). I don't think any search would pull this up, Tomalak.