i've a form which takes userid as input and validates it with the DB then shows a form with four fields and if they were also entered correctly it shows success message.. else error..
my problem is :
when i enter an userID say "jaoude" which exists in DB, then i can see the from fields page, there if i enter another user's say "pavan"'s details correctly then it is showing me success message,,
i've to match only user's "jaoude"'s detaisl with the DB not others..
here's my first page's query where i'm matching userID with DB:
Code: Select all
$query="SELECT customerID, Login FROM ss_customers WHERE Login='" . mysql_real_escape_string($Login) . "'";Code: Select all
$query="SELECT first_name, last_name, state, zip FROM ss_customer_addresses WHERE customerID='" . mysql_real_escape_string($customerID) . "'";