Jump to content

Recommended Posts

hi, my script is supposed to insert the word "password" as an MD5'ed string into my table. but it doesnt . here is my code, any help GREATLY appreciated as ive been working on this for a few hours. LOL. thank you. derek

 

 

<?php

include("connect1.php");


$1a = "password";
md5($1a);




mysql_query("INSERT INTO members (Email, Password)
VALUES ('user@yahoo.com','$1a')");


if(mysql_error())
{
echo "Error: " . mysql_error();
}
else
{
echo "Worked fine";
}

?>

great thank you very much. i changed it and the code is still not updating the table and not showing the "worked" message. here is the code im using now. any more help greatly appreciated thank you.

 

<?php

include("connect1.php");


$1a = "password";
$1a = md5($1a);




mysql_query("INSERT INTO members (Email, Password)
VALUES ('user@yahoo.com','$1a')");


if(mysql_error())
{
echo "Error: " . mysql_error();
}
else
{
echo "Worked fine";
}

?>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.