69 |
70 |
71 |
72 |
73 | select *
74 | from getProducts_count
75 | order by productName asc;
76 |
77 |
78 |
79 | my favorite things
80 | here are the top #total_rows# products. the bigger the link, the more popular they are.
81 |
82 |
83 |
84 | #lcase(productname)#
85 | #lcase(productname)#
86 | #lcase(productname)#
87 | #lcase(productname)#
88 | #lcase(productname)#
89 |
90 |
91 |
92 |
93 |
94 |
95 | select *
96 | from product1
97 |
98 |
99 | note, this is just a sample. there are #total_records.recordcount# in the database.
100 |
101 |
102 |
--------------------------------------------------------------------------------
/DimSome/DimSome.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 0CEEE45A14859B7F00232E1E /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0CEEE45914859B7F00232E1E /* UIKit.framework */; };
11 | 0CEEE45C14859B7F00232E1E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0CEEE45B14859B7F00232E1E /* Foundation.framework */; };
12 | 0CEEE45E14859B7F00232E1E /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0CEEE45D14859B7F00232E1E /* CoreGraphics.framework */; };
13 | 0CEEE46414859B7F00232E1E /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 0CEEE46214859B7F00232E1E /* InfoPlist.strings */; };
14 | 0CEEE46614859B7F00232E1E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 0CEEE46514859B7F00232E1E /* main.m */; };
15 | 0CEEE46A14859B8000232E1E /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0CEEE46914859B8000232E1E /* AppDelegate.m */; };
16 | 0CEEE47114859D7000232E1E /* dimsome_114px_100.png in Resources */ = {isa = PBXBuildFile; fileRef = 0CEEE47014859D7000232E1E /* dimsome_114px_100.png */; };
17 | 0CEEE47314859D7700232E1E /* dimsome_57px_100.png in Resources */ = {isa = PBXBuildFile; fileRef = 0CEEE47214859D7700232E1E /* dimsome_57px_100.png */; };
18 | 0CEEE47514859D7D00232E1E /* dimsome_72px_100.png in Resources */ = {isa = PBXBuildFile; fileRef = 0CEEE47414859D7D00232E1E /* dimsome_72px_100.png */; };
19 | 0CEEE47B1485AC3D00232E1E /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 0CEEE47A1485AC3D00232E1E /* Icon.png */; };
20 | 0CEEE47D1485AC4100232E1E /* Icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 0CEEE47C1485AC4100232E1E /* Icon@2x.png */; };
21 | 0CEEE47F1485AC4500232E1E /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 0CEEE47E1485AC4500232E1E /* Icon-72.png */; };
22 | 0CEEE4811485ADCE00232E1E /* Entitlements.plist in Resources */ = {isa = PBXBuildFile; fileRef = 0CEEE4801485ADCE00232E1E /* Entitlements.plist */; };
23 | /* End PBXBuildFile section */
24 |
25 | /* Begin PBXFileReference section */
26 | 0CEEE45514859B7F00232E1E /* DimSome.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DimSome.app; sourceTree = BUILT_PRODUCTS_DIR; };
27 | 0CEEE45914859B7F00232E1E /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
28 | 0CEEE45B14859B7F00232E1E /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
29 | 0CEEE45D14859B7F00232E1E /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
30 | 0CEEE46114859B7F00232E1E /* DimSome-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "DimSome-Info.plist"; sourceTree = ""; };
31 | 0CEEE46314859B7F00232E1E /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
32 | 0CEEE46514859B7F00232E1E /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
33 | 0CEEE46714859B7F00232E1E /* DimSome-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "DimSome-Prefix.pch"; sourceTree = ""; };
34 | 0CEEE46814859B7F00232E1E /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
35 | 0CEEE46914859B8000232E1E /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
36 | 0CEEE47014859D7000232E1E /* dimsome_114px_100.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = dimsome_114px_100.png; sourceTree = ""; };
37 | 0CEEE47214859D7700232E1E /* dimsome_57px_100.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = dimsome_57px_100.png; sourceTree = ""; };
38 | 0CEEE47414859D7D00232E1E /* dimsome_72px_100.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = dimsome_72px_100.png; sourceTree = ""; };
39 | 0CEEE47A1485AC3D00232E1E /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = ""; };
40 | 0CEEE47C1485AC4100232E1E /* Icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon@2x.png"; sourceTree = ""; };
41 | 0CEEE47E1485AC4500232E1E /* Icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-72.png"; sourceTree = ""; };
42 | 0CEEE4801485ADCE00232E1E /* Entitlements.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Entitlements.plist; sourceTree = ""; };
43 | /* End PBXFileReference section */
44 |
45 | /* Begin PBXFrameworksBuildPhase section */
46 | 0CEEE45214859B7F00232E1E /* Frameworks */ = {
47 | isa = PBXFrameworksBuildPhase;
48 | buildActionMask = 2147483647;
49 | files = (
50 | 0CEEE45A14859B7F00232E1E /* UIKit.framework in Frameworks */,
51 | 0CEEE45C14859B7F00232E1E /* Foundation.framework in Frameworks */,
52 | 0CEEE45E14859B7F00232E1E /* CoreGraphics.framework in Frameworks */,
53 | );
54 | runOnlyForDeploymentPostprocessing = 0;
55 | };
56 | /* End PBXFrameworksBuildPhase section */
57 |
58 | /* Begin PBXGroup section */
59 | 0CEEE44A14859B7F00232E1E = {
60 | isa = PBXGroup;
61 | children = (
62 | 0CEEE4801485ADCE00232E1E /* Entitlements.plist */,
63 | 0CEEE47E1485AC4500232E1E /* Icon-72.png */,
64 | 0CEEE47C1485AC4100232E1E /* Icon@2x.png */,
65 | 0CEEE47A1485AC3D00232E1E /* Icon.png */,
66 | 0CEEE47414859D7D00232E1E /* dimsome_72px_100.png */,
67 | 0CEEE47214859D7700232E1E /* dimsome_57px_100.png */,
68 | 0CEEE47014859D7000232E1E /* dimsome_114px_100.png */,
69 | 0CEEE45F14859B7F00232E1E /* DimSome */,
70 | 0CEEE45814859B7F00232E1E /* Frameworks */,
71 | 0CEEE45614859B7F00232E1E /* Products */,
72 | );
73 | sourceTree = "";
74 | };
75 | 0CEEE45614859B7F00232E1E /* Products */ = {
76 | isa = PBXGroup;
77 | children = (
78 | 0CEEE45514859B7F00232E1E /* DimSome.app */,
79 | );
80 | name = Products;
81 | sourceTree = "";
82 | };
83 | 0CEEE45814859B7F00232E1E /* Frameworks */ = {
84 | isa = PBXGroup;
85 | children = (
86 | 0CEEE45914859B7F00232E1E /* UIKit.framework */,
87 | 0CEEE45B14859B7F00232E1E /* Foundation.framework */,
88 | 0CEEE45D14859B7F00232E1E /* CoreGraphics.framework */,
89 | );
90 | name = Frameworks;
91 | sourceTree = "";
92 | };
93 | 0CEEE45F14859B7F00232E1E /* DimSome */ = {
94 | isa = PBXGroup;
95 | children = (
96 | 0CEEE46814859B7F00232E1E /* AppDelegate.h */,
97 | 0CEEE46914859B8000232E1E /* AppDelegate.m */,
98 | 0CEEE46014859B7F00232E1E /* Supporting Files */,
99 | );
100 | path = DimSome;
101 | sourceTree = "";
102 | };
103 | 0CEEE46014859B7F00232E1E /* Supporting Files */ = {
104 | isa = PBXGroup;
105 | children = (
106 | 0CEEE46114859B7F00232E1E /* DimSome-Info.plist */,
107 | 0CEEE46214859B7F00232E1E /* InfoPlist.strings */,
108 | 0CEEE46514859B7F00232E1E /* main.m */,
109 | 0CEEE46714859B7F00232E1E /* DimSome-Prefix.pch */,
110 | );
111 | name = "Supporting Files";
112 | sourceTree = "";
113 | };
114 | /* End PBXGroup section */
115 |
116 | /* Begin PBXNativeTarget section */
117 | 0CEEE45414859B7F00232E1E /* DimSome */ = {
118 | isa = PBXNativeTarget;
119 | buildConfigurationList = 0CEEE46D14859B8000232E1E /* Build configuration list for PBXNativeTarget "DimSome" */;
120 | buildPhases = (
121 | 0CEEE45114859B7F00232E1E /* Sources */,
122 | 0CEEE45214859B7F00232E1E /* Frameworks */,
123 | 0CEEE45314859B7F00232E1E /* Resources */,
124 | );
125 | buildRules = (
126 | );
127 | dependencies = (
128 | );
129 | name = DimSome;
130 | productName = DimSome;
131 | productReference = 0CEEE45514859B7F00232E1E /* DimSome.app */;
132 | productType = "com.apple.product-type.application";
133 | };
134 | /* End PBXNativeTarget section */
135 |
136 | /* Begin PBXProject section */
137 | 0CEEE44C14859B7F00232E1E /* Project object */ = {
138 | isa = PBXProject;
139 | attributes = {
140 | LastUpgradeCheck = 0420;
141 | };
142 | buildConfigurationList = 0CEEE44F14859B7F00232E1E /* Build configuration list for PBXProject "DimSome" */;
143 | compatibilityVersion = "Xcode 3.2";
144 | developmentRegion = English;
145 | hasScannedForEncodings = 0;
146 | knownRegions = (
147 | en,
148 | );
149 | mainGroup = 0CEEE44A14859B7F00232E1E;
150 | productRefGroup = 0CEEE45614859B7F00232E1E /* Products */;
151 | projectDirPath = "";
152 | projectRoot = "";
153 | targets = (
154 | 0CEEE45414859B7F00232E1E /* DimSome */,
155 | );
156 | };
157 | /* End PBXProject section */
158 |
159 | /* Begin PBXResourcesBuildPhase section */
160 | 0CEEE45314859B7F00232E1E /* Resources */ = {
161 | isa = PBXResourcesBuildPhase;
162 | buildActionMask = 2147483647;
163 | files = (
164 | 0CEEE46414859B7F00232E1E /* InfoPlist.strings in Resources */,
165 | 0CEEE47114859D7000232E1E /* dimsome_114px_100.png in Resources */,
166 | 0CEEE47314859D7700232E1E /* dimsome_57px_100.png in Resources */,
167 | 0CEEE47514859D7D00232E1E /* dimsome_72px_100.png in Resources */,
168 | 0CEEE47B1485AC3D00232E1E /* Icon.png in Resources */,
169 | 0CEEE47D1485AC4100232E1E /* Icon@2x.png in Resources */,
170 | 0CEEE47F1485AC4500232E1E /* Icon-72.png in Resources */,
171 | 0CEEE4811485ADCE00232E1E /* Entitlements.plist in Resources */,
172 | );
173 | runOnlyForDeploymentPostprocessing = 0;
174 | };
175 | /* End PBXResourcesBuildPhase section */
176 |
177 | /* Begin PBXSourcesBuildPhase section */
178 | 0CEEE45114859B7F00232E1E /* Sources */ = {
179 | isa = PBXSourcesBuildPhase;
180 | buildActionMask = 2147483647;
181 | files = (
182 | 0CEEE46614859B7F00232E1E /* main.m in Sources */,
183 | 0CEEE46A14859B8000232E1E /* AppDelegate.m in Sources */,
184 | );
185 | runOnlyForDeploymentPostprocessing = 0;
186 | };
187 | /* End PBXSourcesBuildPhase section */
188 |
189 | /* Begin PBXVariantGroup section */
190 | 0CEEE46214859B7F00232E1E /* InfoPlist.strings */ = {
191 | isa = PBXVariantGroup;
192 | children = (
193 | 0CEEE46314859B7F00232E1E /* en */,
194 | );
195 | name = InfoPlist.strings;
196 | sourceTree = "";
197 | };
198 | /* End PBXVariantGroup section */
199 |
200 | /* Begin XCBuildConfiguration section */
201 | 0CEEE46B14859B8000232E1E /* Debug */ = {
202 | isa = XCBuildConfiguration;
203 | buildSettings = {
204 | ALWAYS_SEARCH_USER_PATHS = NO;
205 | ARCHS = "$(ARCHS_STANDARD_32_BIT)";
206 | CLANG_ENABLE_OBJC_ARC = YES;
207 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
208 | COPY_PHASE_STRIP = NO;
209 | GCC_C_LANGUAGE_STANDARD = gnu99;
210 | GCC_DYNAMIC_NO_PIC = NO;
211 | GCC_OPTIMIZATION_LEVEL = 0;
212 | GCC_PREPROCESSOR_DEFINITIONS = (
213 | "DEBUG=1",
214 | "$(inherited)",
215 | );
216 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
217 | GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
218 | GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
219 | GCC_WARN_ABOUT_RETURN_TYPE = YES;
220 | GCC_WARN_UNUSED_VARIABLE = YES;
221 | IPHONEOS_DEPLOYMENT_TARGET = 5.0;
222 | SDKROOT = iphoneos;
223 | TARGETED_DEVICE_FAMILY = "1,2";
224 | };
225 | name = Debug;
226 | };
227 | 0CEEE46C14859B8000232E1E /* Release */ = {
228 | isa = XCBuildConfiguration;
229 | buildSettings = {
230 | ALWAYS_SEARCH_USER_PATHS = NO;
231 | ARCHS = "$(ARCHS_STANDARD_32_BIT)";
232 | CLANG_ENABLE_OBJC_ARC = YES;
233 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
234 | COPY_PHASE_STRIP = YES;
235 | GCC_C_LANGUAGE_STANDARD = gnu99;
236 | GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
237 | GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
238 | GCC_WARN_ABOUT_RETURN_TYPE = YES;
239 | GCC_WARN_UNUSED_VARIABLE = YES;
240 | IPHONEOS_DEPLOYMENT_TARGET = 5.0;
241 | OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
242 | SDKROOT = iphoneos;
243 | TARGETED_DEVICE_FAMILY = "1,2";
244 | VALIDATE_PRODUCT = YES;
245 | };
246 | name = Release;
247 | };
248 | 0CEEE46E14859B8000232E1E /* Debug */ = {
249 | isa = XCBuildConfiguration;
250 | buildSettings = {
251 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
252 | GCC_PREFIX_HEADER = "DimSome/DimSome-Prefix.pch";
253 | INFOPLIST_FILE = "DimSome/DimSome-Info.plist";
254 | PRODUCT_NAME = "$(TARGET_NAME)";
255 | WRAPPER_EXTENSION = app;
256 | };
257 | name = Debug;
258 | };
259 | 0CEEE46F14859B8000232E1E /* Release */ = {
260 | isa = XCBuildConfiguration;
261 | buildSettings = {
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: Kunal Anand";
263 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
264 | GCC_PREFIX_HEADER = "DimSome/DimSome-Prefix.pch";
265 | INFOPLIST_FILE = "DimSome/DimSome-Info.plist";
266 | PRODUCT_NAME = "$(TARGET_NAME)";
267 | "PROVISIONING_PROFILE[sdk=iphoneos*]" = "B5F40766-3CD3-4E5F-8D2F-6B0C1207AF96";
268 | WRAPPER_EXTENSION = app;
269 | };
270 | name = Release;
271 | };
272 | 0CEEE4821485AF4C00232E1E /* Ad Hoc */ = {
273 | isa = XCBuildConfiguration;
274 | buildSettings = {
275 | ALWAYS_SEARCH_USER_PATHS = NO;
276 | ARCHS = "$(ARCHS_STANDARD_32_BIT)";
277 | CLANG_ENABLE_OBJC_ARC = YES;
278 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
279 | COPY_PHASE_STRIP = YES;
280 | GCC_C_LANGUAGE_STANDARD = gnu99;
281 | GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
282 | GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
283 | GCC_WARN_ABOUT_RETURN_TYPE = YES;
284 | GCC_WARN_UNUSED_VARIABLE = YES;
285 | IPHONEOS_DEPLOYMENT_TARGET = 5.0;
286 | OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
287 | SDKROOT = iphoneos;
288 | TARGETED_DEVICE_FAMILY = "1,2";
289 | VALIDATE_PRODUCT = YES;
290 | };
291 | name = "Ad Hoc";
292 | };
293 | 0CEEE4831485AF4C00232E1E /* Ad Hoc */ = {
294 | isa = XCBuildConfiguration;
295 | buildSettings = {
296 | CODE_SIGN_ENTITLEMENTS = Entitlements.plist;
297 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: Kunal Anand";
298 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
299 | GCC_PREFIX_HEADER = "DimSome/DimSome-Prefix.pch";
300 | INFOPLIST_FILE = "DimSome/DimSome-Info.plist";
301 | PRODUCT_NAME = "$(TARGET_NAME)";
302 | "PROVISIONING_PROFILE[sdk=iphoneos*]" = "B5F40766-3CD3-4E5F-8D2F-6B0C1207AF96";
303 | WRAPPER_EXTENSION = app;
304 | };
305 | name = "Ad Hoc";
306 | };
307 | /* End XCBuildConfiguration section */
308 |
309 | /* Begin XCConfigurationList section */
310 | 0CEEE44F14859B7F00232E1E /* Build configuration list for PBXProject "DimSome" */ = {
311 | isa = XCConfigurationList;
312 | buildConfigurations = (
313 | 0CEEE46B14859B8000232E1E /* Debug */,
314 | 0CEEE46C14859B8000232E1E /* Release */,
315 | 0CEEE4821485AF4C00232E1E /* Ad Hoc */,
316 | );
317 | defaultConfigurationIsVisible = 0;
318 | defaultConfigurationName = Release;
319 | };
320 | 0CEEE46D14859B8000232E1E /* Build configuration list for PBXNativeTarget "DimSome" */ = {
321 | isa = XCConfigurationList;
322 | buildConfigurations = (
323 | 0CEEE46E14859B8000232E1E /* Debug */,
324 | 0CEEE46F14859B8000232E1E /* Release */,
325 | 0CEEE4831485AF4C00232E1E /* Ad Hoc */,
326 | );
327 | defaultConfigurationIsVisible = 0;
328 | defaultConfigurationName = Release;
329 | };
330 | /* End XCConfigurationList section */
331 | };
332 | rootObject = 0CEEE44C14859B7F00232E1E /* Project object */;
333 | }
334 |
--------------------------------------------------------------------------------