Advertisement
Advertisement
| 04.14.2008 at 12:53PM PDT, ID: 23321555 | Points: 500 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: |
<cffile action="delete" file="#qMyRecordSel.Location##qMyRecordSel.FileName#" > <cfquery name="qMyRecordDel" datasource="#DSN#"> delete from photo WHERE photoID = <cfqueryparam cfsqltype="cf_sql_integer" value="#url.recordid#"> </cfquery> <cfoutput> <p>Record and file deleted [#url.recordid#]: #qMyRecordSel.Location##qMyRecordSel.FileName#</p> </cfoutput> <cfcatch> <cfoutput> <p>Error occured deleting [#url.recordid#]: #qMyRecordSel.Location##qMyRecordSel.FileName#</p> </cfoutput> </cfcatch> </cftry> </cfif> |
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 04.14.2008 at 01:51PM PDT, ID: 21353759 |
| 04.14.2008 at 01:55PM PDT, ID: 21353793 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: |
<cfif StructKeyExists(url,"recordid")> <cfset DSN="security"> <!--- Selects all fields from the table that match the record ID ---> <cfquery name="qMyRecordSel" datasource="#DSN#"> SELECT * from photo WHERE photoID = <cfqueryparam cfsqltype="cf_sql_integer" value="#url.recordid#"> </cfquery> <!--- Delete physical file and data from database ---> <cffile action="delete" file="#qMyRecordSel.Location##qMyRecordSel.FileName#" > <cfquery name="qMyRecordDel" datasource="#DSN#"> delete from photo WHERE photoID = <cfqueryparam cfsqltype="cf_sql_integer" value="#url.recordid#"> </cfquery> <cfoutput> <p>Record and file deleted [#url.recordid#]: #qMyRecordSel.Location##qMyRecordSel.FileName#</p> </cfoutput> <cfcatch> <cfoutput> <p>Error occured deleting [#url.recordid#]: #qMyRecordSel.Location##qMyRecordSel.FileName#</p> </cfoutput> </cfcatch> </cftry> </cfif> |
| 04.14.2008 at 02:09PM PDT, ID: 21353902 |
| 04.14.2008 at 02:16PM PDT, ID: 21353957 |
| 04.14.2008 at 02:30PM PDT, ID: 21354101 |
| 04.14.2008 at 04:09PM PDT, ID: 21354751 |
| 04.14.2008 at 07:54PM PDT, ID: 21355608 |
| 04.14.2008 at 10:53PM PDT, ID: 21356211 |
| 04.15.2008 at 06:26AM PDT, ID: 21358427 |
| 04.15.2008 at 06:47AM PDT, ID: 21358631 |
| 04.15.2008 at 07:16AM PDT, ID: 21358888 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: |
<cfquery name="photo" datasource="security">
SELECT *
FROM member, cou, photo
WHERE cou.memberid=member.id AND
photo.memberid=member.id AND
cou.ID = <cfqueryparam cfsqltype="cf_sql_integer" value="#url.recordid#">
</cfquery>
<cfset MaxRows_photo=10>
<cfset MaxRows_photo=4>
<cfset StartRow_photo=Min((PageNum_photo-1)*MaxRows_photo+1,Max(photo.RecordCount,1))>
<cfset EndRow_photo=Min(StartRow_photo+MaxRows_photo-1,photo.RecordCount)>
<cfset TotalPages_photo=Ceiling(photo.RecordCount/MaxRows_photo)>
<cfoutput query="photo">
<tr><th scope="col"><img src="../mymobi/photos/m#vmemberid#/#photo.filename#" width="250"/></th></tr>
</cfoutput>
|
| 04.15.2008 at 07:37AM PDT, ID: 21359095 |
| 04.15.2008 at 08:27AM PDT, ID: 21359549 |