-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.cfm
55 lines (43 loc) · 1.36 KB
/
test.cfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!---<cfdump var=#CGI#>--->
hello there
<cfloop from="1" to="20" index="i">
<cfdump var = #RandRange(1,10)#>
</cfloop>
<cfdump var=#addTen(54)#>
<cffunction accsess="public" returntype="numeric" name="addTen">
<cfargument required="false" type="numeric" name="addThisToTen">
<cfset addThisToTen = addThisToTen + 10>
<cfreturn addThisToTen>
</cffunction>
<!---
<cfset startTime = #GetTickCount()#>
<cfset delayDeration = startTime + 1000>
<cfloop condition = "#GetTickCount()# < #delayDeration#">
</cfloop>
--->
<!--- <cfquery name='contact_list'>
insert ignore into contacts (cID,cFirstName,cLastName,cPhoneNumber)
values (
2,
<cfqueryparam value="Scott">,
<cfqueryparam value="Steinbeck">,
<cfqueryparam value="(255) 643-7777">
)
</cfquery> --->
<cfif structKeyExists(url,"cid")>
<cfquery name='update_contact_list'>
UPDATE `air_district`.`contacts`
SET cFirstName = <cfqueryparam value="#url.name#">
WHERE `cID` = <cfqueryparam value= "#url.cid#">
</cfquery>
</cfif>
<cfquery name='contact_list'>
-- UPDATE `air_district`.`contacts` SET `cPhoneNumber` = '(661) 864-6156' WHERE `cID` = 1
select * from contacts
</cfquery>
<!--- <cfset session.theTime = now()> --->
<!--- <cfdump var = #session#> --->
<cfdump var = #contact_list#>
<cfset num = 63>
<cfdump var = #++num#>
<cfdump var = #((1==2) ? "hello" : "bye")#>