|
02-28-2007, 12:06 PM | #1 |
Green Mole
Join Date: Feb 2007
Posts: 1
|
basic php/mysql verification problem
im pretty new to php/mysql and have just been picking up what i can from the web. with that said, im trying to create a very basic way to log into a website using a table to store information like username and password (im sure this isn't the most secure way to go about this but thats irrelevant at this point)
so i pass the entered username and pass into the next document which is trying to verify it. my plan was to get php to retrieve the password from the table and then compare the two variables to insure a match. i get stuck on the retrieval part. $db_pass = ""; $db_pass = mysql_query(" SELECT password FROM users WHERE username=$user"); if it ever prints out it prints Resource ID #2 i realize this is probably pretty basic, thanks for any help. |
03-21-2007, 08:06 PM | #2 |
Green Mole
Join Date: Mar 2007
Posts: 6
|
Try browsing the Phpdig user help database.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Credit Card Verification | Germaris | Coding & Tutorials | 0 | 03-07-2008 11:43 AM |
Problem with MySQL 4.1 | machek | Bug Tracker | 0 | 08-05-2006 04:28 AM |
Problem Mysql when no results | noel | Troubleshooting | 4 | 10-27-2005 10:56 AM |
ThinkDing Php MySql Search Script | zizion | The Mole Hole | 1 | 11-10-2003 09:09 AM |
Run at PHP 4.3.2 MySQL 4 | Rolandks | Troubleshooting | 4 | 09-18-2003 05:36 AM |