This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01BFDD65.9C442DD4
Content-Type: text/plain;
charset="iso-8859-1"
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 23, 2000 3:42 PM
To: [EMAIL PROTECTED]
Subject: RE: Inserting Multiple Values into One Database Field
That should throw a SQL error. What you need to do is create the list
outside of your query statement.
<cfset keywords = name & 'and' & address & 'and' & phone>
<CFQUERY name="insert" datasource="search">
INSERT INTO search(keywords)
VALUES('#keywords#')
</CFQUERY>
--K
====================
Katrina Chapman
Consultant
Ameriquest Mortgage
Anthony
Israel-Davis To:
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
<anthony@trip cc:
wire.com> Subject: RE: Inserting Multiple
Values into One Database Field
06/23/00
03:06 PM
Please
respond to
cf-talk
Try this:
<CFQUERY datasource="search">
INSERT INTO search(keywords)
VALUES('#name#,#address#,#phone#')
</CFQUERY>
remove the "AND"s and wrap the whole thing in single quotes. Hope that
helps
ant
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 23, 2000 1:56 PM
To: [EMAIL PROTECTED]
Subject: Inserting Multiple Values into One Database Field
Ok, what i am trying to do is add a column in my database that would
contain
"Keywords" for a search.
What i am trying to do is add values from the data entered in the form from
the previous page to one field in the database
I only get a value of "-1" ????? is there something i am doing wrong???
<CFQUERY datasource="search">
INSERT INTO search(keywords)
VALUES('#name#' AND '#address#' AND '#phone#')
</CFQUERY>
Help?
-kev
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------_=_NextPart_001_01BFDD65.9C442DD4
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: Inserting Multiple Values into One Database Field</TITLE>
</HEAD>
<BODY>
<BR>
<BR>
<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: [EMAIL PROTECTED] [<A =
HREF=3D"mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</=
A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Friday, June 23, 2000 3:42 PM</FONT>
<BR><FONT SIZE=3D2>To: [EMAIL PROTECTED]</FONT>
<BR><FONT SIZE=3D2>Subject: RE: Inserting Multiple Values into One =
Database Field</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=3D2>That should throw a SQL error. What you need to =
do is create the list</FONT>
<BR><FONT SIZE=3D2>outside of your query statement.</FONT>
</P>
<P><FONT SIZE=3D2><cfset keywords =3D name & 'and' & address =
& 'and' & phone></FONT>
</P>
<P><FONT SIZE=3D2><CFQUERY name=3D"insert" =
datasource=3D"search"></FONT>
<BR><FONT SIZE=3D2>INSERT INTO search(keywords)</FONT>
<BR><FONT SIZE=3D2>VALUES('#keywords#')</FONT>
<BR><FONT SIZE=3D2></CFQUERY></FONT>
</P>
<P><FONT SIZE=3D2>--K</FONT>
</P>
<P><FONT =
SIZE=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</F=
ONT>
<BR><FONT SIZE=3D2>Katrina Chapman</FONT>
<BR><FONT SIZE=3D2>Consultant</FONT>
<BR><FONT SIZE=3D2>Ameriquest Mortgage</FONT>
</P>
<BR>
<P><FONT =
SIZE=3D2> &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; </FONT></P>
<P><FONT =
SIZE=3D2> &nb=
sp; =
Anthony  =
;  =
;  =
;  =
;  =
;  =
;  =
;  =
; </FONT></P>
<P><FONT =
SIZE=3D2> &nb=
sp; =
Israel-Davis =
To: "'[EMAIL PROTECTED]'" =
<[EMAIL PROTECTED]> &nb=
sp; &nb=
sp; </FONT></P>
<P><FONT =
SIZE=3D2> &nb=
sp; =
<anthony@trip =
cc: &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; =
</FONT></P>
<P><FONT =
SIZE=3D2> &nb=
sp; =
wire.com> =
Subject: RE: Inserting Multiple Values =
into One Database =
Field &=
nbsp; </FONT></P>
<P><FONT =
SIZE=3D2> &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; </FONT></P>
<P><FONT =
SIZE=3D2> &nb=
sp; =
06/23/00 &nbs=
p; &nbs=
p; &nbs=
p; &nbs=
p; &nbs=
p; &nbs=
p; &nbs=
p; &nbs=
p; </FONT></P>
<P><FONT =
SIZE=3D2> &nb=
sp; 03:06 =
PM &nbs=
p; &nbs=
p; &nbs=
p; &nbs=
p; &nbs=
p; &nbs=
p; &nbs=
p; &nbs=
p; </FONT></P>
<P><FONT =
SIZE=3D2> &nb=
sp; =
Please =
=
=
=
=
=
=
=
</FONT></P>
<P><FONT =
SIZE=3D2> &nb=
sp; respond =
to &nbs=
p; &nbs=
p; &nbs=
p; &nbs=
p; &nbs=
p; &nbs=
p; &nbs=
p; &nbs=
p; </FONT></P>
<P><FONT =
SIZE=3D2> &nb=
sp; =
cf-talk  =
;  =
;  =
;  =
;  =
;  =
;  =
;  =
; </FONT></P>
<P><FONT =
SIZE=3D2> &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; </FONT></P>
<P><FONT =
SIZE=3D2> &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; </FONT></P>
<BR>
<BR>
<P><FONT SIZE=3D2>Try this:</FONT>
</P>
<P><FONT SIZE=3D2><CFQUERY =
datasource=3D"search"></FONT>
<BR><FONT SIZE=3D2>INSERT INTO search(keywords)</FONT>
<BR><FONT SIZE=3D2>VALUES('#name#,#address#,#phone#')</FONT>
<BR><FONT SIZE=3D2></CFQUERY></FONT>
</P>
<P><FONT SIZE=3D2>remove the "AND"s and wrap the whole thing =
in single quotes. Hope that</FONT>
<BR><FONT SIZE=3D2>helps</FONT>
</P>
<P><FONT SIZE=3D2>ant</FONT>
</P>
<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: [EMAIL PROTECTED] [<A =
HREF=3D"mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Friday, June 23, 2000 1:56 PM</FONT>
<BR><FONT SIZE=3D2>To: [EMAIL PROTECTED]</FONT>
<BR><FONT SIZE=3D2>Subject: Inserting Multiple Values into One Database =
Field</FONT>
</P>
<BR>
<P><FONT SIZE=3D2>Ok, what i am trying to do is add a column in my =
database that would</FONT>
<BR><FONT SIZE=3D2>contain</FONT>
</P>
<P><FONT SIZE=3D2>"Keywords" for a search.</FONT>
</P>
<P><FONT SIZE=3D2>What i am trying to do is add values from the data =
entered in the form from</FONT>
</P>
<P><FONT SIZE=3D2>the previous page to one field in the database</FONT>
</P>
<P><FONT SIZE=3D2>I only get a value of "-1" =
????? is there something i am doing wrong???</FONT>
</P>
<P><FONT SIZE=3D2><CFQUERY =
datasource=3D"search"></FONT>
<BR><FONT SIZE=3D2>INSERT INTO search(keywords)</FONT>
<BR><FONT SIZE=3D2>VALUES('#name#' AND '#address#' AND =
'#phone#')</FONT>
<BR><FONT SIZE=3D2></CFQUERY></FONT>
</P>
<P><FONT SIZE=3D2>Help?</FONT>
</P>
<P><FONT SIZE=3D2>-kev</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
-------------</FONT>
</P>
<P><FONT SIZE=3D2>--</FONT>
<BR><FONT SIZE=3D2>Archives: <A =
HREF=3D"http://www.eGroups.com/list/cf-talk" =
TARGET=3D"_blank">http://www.eGroups.com/list/cf-talk</A></FONT>
<BR><FONT SIZE=3D2>To Unsubscribe visit</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&body=3Dli=
sts/cf_talk" =
TARGET=3D"_blank">http://www.houseoffusion.com/index.cfm?sidebar=3Dlists=
&body=3Dlists/cf_talk</A> or</FONT>
<BR><FONT SIZE=3D2>send a message to [EMAIL PROTECTED] =
with 'unsubscribe' in</FONT>
<BR><FONT SIZE=3D2>the body.</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
---------------</FONT>
</P>
<P><FONT SIZE=3D2>Archives: <A =
HREF=3D"http://www.eGroups.com/list/cf-talk" =
TARGET=3D"_blank">http://www.eGroups.com/list/cf-talk</A></FONT>
<BR><FONT SIZE=3D2>To Unsubscribe visit</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&body=3Dli=
sts/cf_talk" =
TARGET=3D"_blank">http://www.houseoffusion.com/index.cfm?sidebar=3Dlists=
&body=3Dlists/cf_talk</A> or</FONT>
<BR><FONT SIZE=3D2>send a message to [EMAIL PROTECTED] =
with 'unsubscribe' in</FONT>
<BR><FONT SIZE=3D2>the body.</FONT>
</P>
<BR>
<BR>
<BR>
<P><FONT =
SIZE=3D2>---------------------------------------------------------------=
---------------</FONT>
<BR><FONT SIZE=3D2>Archives: <A =
HREF=3D"http://www.eGroups.com/list/cf-talk" =
TARGET=3D"_blank">http://www.eGroups.com/list/cf-talk</A></FONT>
<BR><FONT SIZE=3D2>To Unsubscribe visit <A =
HREF=3D"http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&body=3Dli=
sts/cf_talk" =
TARGET=3D"_blank">http://www.houseoffusion.com/index.cfm?sidebar=3Dlists=
&body=3Dlists/cf_talk</A> or send a message to =
[EMAIL PROTECTED] with 'unsubscribe' in the =
body.</FONT></P>
</BODY>
</HTML>
------_=_NextPart_001_01BFDD65.9C442DD4--
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.