Jump to content

Help required using MySQL and PHP


nib

Recommended Posts

Well, I have recently started PHP and barely know anything about MySQL. I was wondering if there was a tutorial online thats good enough and can teach me how to create passwords in PHP, encrypt them and then use those passwords to pull data from the MySQL table ?

Link to comment
Share on other sites

the password hashing (sha1) used by that tutorial (reference to a reply that has since been removed) is NOT recommend to be used for password hashing - 
 

It is not recommended to use this function to secure passwords, due to the fast nature of this hashing algorithm. See here for details.

 

 

the code also has some questionable logic and user message usage that will leave you guessing what is really happening with the validation.

 

and since this isn't a question about code the OP has that he needs help with, moving thread to the misc forum section...

Edited by mac_gyver
ajusted for removed reply above this one
Link to comment
Share on other sites

So, now which tutorial should I read, @mac_gyver ?

 

the password hashing used by that tutorial is NOT recommend to be used for password hashing - 
 

 

the code also has some questionable logic and user message usage that will leave you guessing what is really happening with the validation.

 

and since this isn't a question about code the OP has that he needs help with, moving thread to the misc forum section...

Link to comment
Share on other sites

the quote in the reply i posted contains a link to the current best method/recommended php based password hashing information.

 

as to tutorials, i/we don't have a list of "here is the best tutorial available to do ________" because there are multiple ways to approach a problem, with different needs/features, and even different ways of integrating the code into the style of coding used to create the web site. tutorials should just be treated as a guide to get you started, i.e. here's how someone at some point in time solved a problem. the problem with a lot of the information posted on the Internet is it was thrown together as an example, rather than being an actual, complete, tested, and working script. the way to get it to the point of having an actual, complete, tested, and working script is is to think about what the code is doing and relate it to what you want your code to do.

Edited by mac_gyver
Link to comment
Share on other sites

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.