Click here to Skip to main content
15,877,280 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: PHP question Pin
Bradml15-Mar-07 10:39
Bradml15-Mar-07 10:39 
AnswerRe: PHP question Pin
hiral_shah15-Mar-07 18:33
hiral_shah15-Mar-07 18:33 
AnswerRe: PHP question Pin
john3416-Mar-07 0:15
john3416-Mar-07 0:15 
GeneralRe: PHP question Pin
hiral_shah16-Mar-07 1:38
hiral_shah16-Mar-07 1:38 
GeneralRe: PHP question Pin
hiral_shah16-Mar-07 1:45
hiral_shah16-Mar-07 1:45 
GeneralRe: PHP question Pin
john3416-Mar-07 1:58
john3416-Mar-07 1:58 
GeneralRe: PHP question Pin
Bradml16-Mar-07 14:53
Bradml16-Mar-07 14:53 
AnswerRe: PHP question Pin
hiral_shah16-Mar-07 2:15
hiral_shah16-Mar-07 2:15 
Try this,

$user_name = $_REQUEST['user_id']; // Get the value of user id
$pwd = $_REQUEST['password']; // Get the password

database connection // To connect database if already done than its ok.

$query_check_user = "select * from user where UserName = '$user_name' and Password = '$pwd'";
$result_check_user = mysql_query($query_check_user) or die("Error in Checking validity of the user::Error -> ".mysql_error());

if(mysql_num_rows($result_check_user) == 1)
{
while($row = mysql_fetch_array($result_check_user, MYSQL_ASSOC))
{
$userName = $row['user_name'];
$pass = $row['password'];
}
}

From that you will get the data from database.

--------------------------------------------------------------------------------------------------
Hiral Shah
India


If you think that my answer is good enough and can be helpful for other then don't forget to vote. Smile | :)
GeneralRe: PHP question Pin
john3416-Mar-07 5:12
john3416-Mar-07 5:12 
AnswerRe: PHP question Pin
JimmyRopes17-Mar-07 6:20
professionalJimmyRopes17-Mar-07 6:20 
Questionhow to sync files?? Pin
ajitscorpio15-Mar-07 6:00
ajitscorpio15-Mar-07 6:00 
QuestionDynamically setting <img> data representing an SVG image Pin
Erik Hammar15-Mar-07 5:36
Erik Hammar15-Mar-07 5:36 
AnswerRe: Dynamically setting <img> data representing an SVG image Pin
led mike15-Mar-07 6:06
led mike15-Mar-07 6:06 
Questionhelp in asp call back Pin
r_jaz15-Mar-07 5:01
r_jaz15-Mar-07 5:01 
AnswerRe: help in asp call back Pin
led mike15-Mar-07 5:30
led mike15-Mar-07 5:30 
GeneralRe: help in asp call back Pin
r_jaz15-Mar-07 5:35
r_jaz15-Mar-07 5:35 
GeneralRe: help in asp call back Pin
led mike15-Mar-07 6:03
led mike15-Mar-07 6:03 
QuestionCode-Converter needed for ASP application Pin
matthias s.15-Mar-07 4:29
matthias s.15-Mar-07 4:29 
AnswerRe: Code-Converter needed for ASP application Pin
led mike15-Mar-07 4:53
led mike15-Mar-07 4:53 
GeneralRe: Code-Converter needed for ASP application Pin
matthias s.15-Mar-07 4:59
matthias s.15-Mar-07 4:59 
GeneralRe: Code-Converter needed for ASP application Pin
led mike15-Mar-07 5:28
led mike15-Mar-07 5:28 
QuestionASP 2.0 Pin
Navneet Hegde15-Mar-07 2:01
Navneet Hegde15-Mar-07 2:01 
QuestionRe: ASP 2.0 Pin
badgrs15-Mar-07 3:20
badgrs15-Mar-07 3:20 
AnswerRe: ASP 2.0 Pin
Navneet Hegde15-Mar-07 3:29
Navneet Hegde15-Mar-07 3:29 
GeneralRe: ASP 2.0 Pin
Marcus J. Smith15-Mar-07 4:07
professionalMarcus J. Smith15-Mar-07 4:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.