Current location: Hot Scripts Forums » Programming Languages » PHP » how can i check this


how can i check this

Reply
  #1 (permalink)  
Old 02-08-10, 03:31 AM
zee000 zee000 is offline
Newbie Coder
 
Join Date: Feb 2010
Posts: 21
Thanks: 2
Thanked 0 Times in 0 Posts
how can i check this

hiiiiiiiii
how can i check unique elements in database using php..........
Reply With Quote
  #2 (permalink)  
Old 02-08-10, 06:35 AM
timbaker1991's Avatar
timbaker1991 timbaker1991 is offline
Newbie Coder
 
Join Date: Dec 2009
Location: London, UK
Posts: 38
Thanks: 2
Thanked 3 Times in 3 Posts
how do you mean display a row/result from the database?
Reply With Quote
  #3 (permalink)  
Old 02-08-10, 06:49 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
Please post any code you have.
Reply With Quote
  #4 (permalink)  
Old 02-08-10, 11:27 PM
zee000 zee000 is offline
Newbie Coder
 
Join Date: Feb 2010
Posts: 21
Thanks: 2
Thanked 0 Times in 0 Posts
PHP Code:

<?php
include"conifig.php";
$LoginName=$_POST['loginname'];
$Answer1=$_POST['answer1'];
$Answer2=$_POST['answer2'];
$Answer3=$_POST['answer3'];
$query="SELECT *FROM table WHERE Loginname='$LoginName' AND bplace='$Answer1'  AND petname='$Answer2' AND luckyno='$Answer3' ";
$result mysql_query($query$con);
if(
mysql_num_rows($result)) 
{
  echo 
"hi";
  
header('Location:password.html');

else {
  print(
"Sorry, this login is invalid.");
  exit;
}
mysql_close($con);
?>
here i would like to give them a new default password any suggestions are accepted

Last edited by Nico; 02-09-10 at 11:32 AM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
check in database jonnekke PHP 1 07-09-09 07:13 AM
how to check SESSION is valid macintosh PHP 1 05-17-09 07:02 PM
[SOLVED] check request system dsuguy Script Requests 7 03-21-08 05:18 PM
First check the price, then check the title and see if contains.. Oskare100 PHP 1 01-04-07 03:53 PM
Check for Updates MikeFairbrother Visual Basic 0 09-16-06 10:27 AM


All times are GMT -5. The time now is 08:10 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.