Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
cont select query ' and @
Old 05-26-2006, 04:56 PM cont select query ' and @
Experienced Talker

Posts: 41
Trades: 0
why does myquery says " PROBLEM HEAR '@WHATEVER.COM"

it doesn't select after the @ sign?????????

PHP Code:
<?php
include_once'../includes/db.php';
include_once
'../includes/header.php';
$email=$_POST['email'];
$email=stripslashes($email);
if(
$email==""){
echo 
"please enter your email";
include
'../htmlforms/lost_pw.html';
}
$checkemail=mysql_query("SELECT password FROM user WHERE email=$email")or die(mysql_error());
while(
$mail=mysql_fetch_array($checkemail)){
$password=$mail['password'];
$username=$mail['username'];
if(!
$checkmail){
echo
"that email is not a active email";
include
'../htmlforms/lost_pw.html';}else{
$subject=" your lost password";
$message=" hello this is your lost password password=$password keep your password in a safe place.. This is an automated response, please do not reply!";
mail($_POST['email'],$subject,$message);
echo 
"your password has been sent";
}
}
?>


else if some one puts something like hi i'm .. the ' is a problme i thought stripslashes would help..
richard181 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-27-2006, 03:02 PM Re: cont select query ' and @
ChancesAre's Avatar
Skilled Talker

Posts: 84
Trades: 0
Nop, addslashes would help more than stripslashes.
ChancesAre is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to cont select query ' and @
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.38017 seconds with 12 queries