PhpDig.net

Go Back   PhpDig.net > General Forums > Coding & Tutorials

Reply
 
Thread Tools
Old 02-28-2007, 12:06 PM   #1
sturomanek
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.
sturomanek is offline   Reply With Quote
Old 03-21-2007, 08:06 PM   #2
keeen
Green Mole
 
Join Date: Mar 2007
Posts: 6
Try browsing the Phpdig user help database.
__________________
Keen Shoes , My site Donald J Pliner Shoes
keeen is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT -8. The time now is 07:08 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.