Mark Forums Read
  #1  
Old 09-09-2008, 09:17 AM
philip123 philip123 is offline
Junior Member
 
Join Date: Sep 2008
Posts: 1
philip123 is on a distinguished road
Default Inser then query

I am doing an insert then trying to put the id of that query into a COOKIE.

I am getting an "Element APP_ID is undefined in Q_APP_ID" error from this code.

<cfquery name="q_enter_app_info" datasource="xxxxxxxx" username="xxxxxxxx" password="xxxxxxxx">

INSERT INTO `app_information`
(`app_id`, `app_first`, `app_last`, `app_dob`, `app_address`, `app_city`, `app_state`, `app_zip`, `app_phone`, `app_email`, `app_member`, `app_date`)
VALUES
(NULL, '#first#', '#last#','#DateFormat(dob, "yyyy-mm-dd")#', '#address#', '#city#', '#state#', '#zip#', '#phone#', '#email#', '#member#', '#DateFormat(date, "yyyy-mm-dd")#')
</cfquery>

<cfquery name="q_app_id" datasource="xxxxxxxx" username="xxxxxxxx" password="xxxxxxxx">
SELECT *
FROM app_information
WHERE app_phone = #phone#
</cfquery>

<cfcookie name="app_id" value="#q_app_id.app_id#">

Can someone knows how to make this code work or can show me an easier way to do it.

http://www.infysolutions.com


Web application development
Reply With Quote
 #Add to Ads's Reputation  
OldSponsored Ads
Ads AdsPromoter is online
Member
 
Join Date: LongTime
Posts: 1100
Ads is on a distinguished road
Default New Sponsored Ads



This message will go away once you are registered. Also, by registering, you will have access to all post topics, communicate privately with other members (PM), respond to polls, upload graphics, and access other special features! Registration is fast, simple and absolutely free so please Click Here to join our Web Hosting community today!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 06:00 PM.


Powered by vBulletin Version 3.6.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.4.0