home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cool Page Magazine 16
/
CoolPage_16.iso
/
dynadb
/
codes
/
addcust2.cfm
< prev
next >
Wrap
Text File
|
1998-01-22
|
2KB
|
43 lines
<!---------------------------└╔ªWíGAddtype2.cfm-------------------->
<!--- │o¼Oñ@¡╙½ß│B▓z╡{ªí --->
<!--- Ñ╗¡╢¼Oªb┐ΘñJ╝╞¡╚ÑH½ß│B▓z¬║╣L╡{ --->
<!--- ½e¡▒ñjÑb│í│ú¼Oªb┤·╕╒⌐╥┐ΘñJ¬║╕Ω«╞¼Oº_Ñ┐╜T --->
<!----------------------------------------------------------------->
<HTML>
<BODY background="paper12l.jpg">
<!--- ▒N┼▄╝╞▒╥⌐lñ╞ ---> <!------------------------------------------------->
<cfset dupidx=false> <!--- ¿M⌐w┼U½╚╜s╕╣ª│¿Sª│¡½┬╨¬║┼▄╝╞ --->
<!------------------------------------------------->
<!--- └╦¼d║╪├■¬║╜s╕╣⌐MªW║┘ª│¿Sª│¡½╜╞ --->
<CFQUERY NAME="Checkcust" DATASOURCE="Dynamic Database">
select * from customer where
cust_id = '#cust_id#'
</CFQUERY>
<cfif #Checkcust.recordcount# greater than 0>
<cfset dupidx=true>
║╪├■╜s╕╣⌐╬ªW║┘¡½╜╞<br>
<cfelse>
<!--------------------------------------------------------------------->
<!--- ªp¬G│q╣LñF⌐╥ª│¬║┤·╕╒íA┤N╖|¿╙¿∞│oñ@│íñ└ --->
<!--- │o¼Oñ@Ñy╖s╝W░O┐²¬║╗yÑyíA─µª∞ªW║┘Ñ▓╢╖⌐M╝╞╛┌«w¬║─µª∞ªW║┘ñ@¡P --->
<!--------------------------------------------------------------------->
<CfQuery name="AddRecord" datasource="dynamic database">
insert into customer(cust_id, hkid, family_name, given_name,
address, tel, fax, email, visa)
values ('#cust_id#', '#hkid#', '#family_name#', '#given_name#',
'#address#', '#tel#', '#fax#', '#email#', '#visa#')
</cfquery>
<HEAD><TITLE>╕Ω«╞ñw╕g╖s╝W</TITLE></HEAD>
<CENTER><H2>ºA¡Φñ~⌐╥┐ΘñJ¬║║╪├■╕Ω«╞ñw╖s╝Wª▄╝╞╛┌«wññ</H2></CENTER>
<HR>
<P ALIGN="center"><A HREF="/dynadb/index.htm">ª^¿∞ÑD¡╢</A></P>
</BODY>
</HTML>
</cfif>