Jump to content

Need help with my login.php


acid.waste

Recommended Posts

Alrite I have a script that creates a new php script for each user, but thats a huge security risk because i have the Username and Password box saved into the php script and checked against the login.php page; I am a total newb with MySQL, but i have the database, but i have no idea what tables to create with fields and datatype etc :3

 

Also, I dont know how to check the username and password via SQL;

Any help would be greatly appreciated

Link to comment
Share on other sites

http://www.w3schools.com/php/php_mysql_intro.asp

General tutorial on PHP and MySQL

 

http://php.net/manual/en/function.md5.php

Remember to use that to hash your password (You should never be able to go in to the database and see what the password is), though I think MD5 is outdated and has been replaced by something stronger, though I could be wrong

 

http://php.net/manual/en/function.mysql-real-escape-string.php

Stop people from injecting SQL into your database

(More reading here http://www.tizag.com/mysqlTutorial/mysql-php-sql-injection.php)

Link to comment
Share on other sites

http://www.w3schools.com/php/php_mysql_intro.asp

General tutorial on PHP and MySQL

 

http://php.net/manual/en/function.md5.php

Remember to use that to hash your password (You should never be able to go in to the database and see what the password is), though I think MD5 is outdated and has been replaced by something stronger, though I could be wrong

 

http://php.net/manual/en/function.mysql-real-escape-string.php

Stop people from injecting SQL into your database

(More reading here http://www.tizag.com/mysqlTutorial/mysql-php-sql-injection.php)

 

Thanks for the reply and links, this helped me alot.

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.