Ask a Question related to Coldfusion Database Access, Design and Development.
-
HongKongSunny #1
hot to apply "not equal"
my query is like that:
<cfquery name="CheckEmail" datasource="Dating">
Select Email From MemberMain Where MemberID <> #Session.MemberID#
</cfquery>
however the output still come with that record, so what's wrong with me?
HongKongSunny Guest
-
Dropdownlist "Select Value Equal To" Gives an Error
In DW MX 2004 (C#), when I set the "select value equal to" for a dropdownlist item, I get the following .NET error once I try to view the webpage: ... -
Added text field to database. New entries not equal to "" ???
Hi! I'm accessing an MS Access database from an ASP server. I just added a new text column (field) to one of my tables. I have not added any... -
Including "less equal" sign in MX under windows
How can I include special characters like the "less equal" character in a technical FreeHand MX drawing under Windows 2000? - Characters like... -
#25763 [Opn->WFx]: Why the string "1.10" is equal to the string "1.1"?
ID: 25763 Updated by: pollita@php.net Reported By: jparneodo at yahoo dot fr -Status: Open +Status: ... -
#25763 [NEW]: Why the string "1.10" is equal to the string "1.1"?
From: jparneodo at yahoo dot fr Operating system: RH7.2 PHP version: 4.3.3 PHP Bug Type: Strings related Bug description: ... -
mxstu #2
Re: hot to apply "not equal"
If #Session.MemberID# = 3 and your table contains:
MemberID
1
2
3
4
Your query should return the emails for MemberID's 1,2 and 4. If this is not correct, what results do you want?
mxstu Guest
-
Dan Bracuk #3
Re: hot to apply "not equal"
Could be that two records have the same email. To check, do this
select email, count(email)
from membermain
group by email
having count(email) >1
Dan Bracuk Guest
-
HongKongSunny #4
Re: hot to apply "not equal"
mxtsu:
<cfquery name="CheckEmail" datasource="Dating">
Select Email From MemberMain Where MemberID <> #Session.MemberID#
</cfquery>
what i want is when member update their email , doesn't want duplicate email,
but if the member doesn't change the email, it also said that the email was
used, even belongs to the sae person
HongKongSunny Guest
-
mxstu #5
Re: hot to apply "not equal"
Then you also need to check the email address:
Select Email
From MemberMain
Where Email = '#form.newEmailAddress#' AND
MemberID <> #Session.MemberID#
mxstu Guest
-
HongKongSunny #6
Re: hot to apply "not equal"
mxtsu,
thanks i think i didn't use "And"
HongKongSunny Guest



Reply With Quote

