You are right. My example was not complete.
Apart from the numeric pager there are [previous] en [next] buttons.
But it's of no concern anymore, as I solved this problem already.
Thanks anyway for your response.
Hi,
im working on a pager for a client.
Here's how it should work.... Let's assume we've got many products. I don't want to show them all at once. But let's say 10 per page.
The pager should not display all pages as links, but it should be configurable. Let's say I want to show a maximum of 10...
Imagine a dynamic website. The site consist of sections and pages.
home
intro
vacancies
vacancy 1
etc
contact
sections and pages are stored in separate tables
stblsections
----------------
SectionID int (primary key)
Title varchar
parentSectionID
sortorder int
stblpages...
You could use the encrypt and decrypt functions
<cfset seed = "1234567890">
somepage.cfm?somevar=#urlencodedformat(encrypt(78, seed))#
#decrypt(urlDecode(url.somevar), seed)#
My order table consist of 2 fields
Time_RX (datetime) dateTime order has been placed
Time_TX (datetime) dateTime order has been handled
Now I have to calculate the responsetime between placing an handling, with bussiness hours taken into account!
What I mean is:
Suppose Bussinesshours : 08:00...
Yes we do use cfschedule for the batches.
The scheduled mailer looks something like this:
1. Select all subscribers from the database
2. Select the next 150 from the query (based on a url.start)
3. mail the ezine
4. check for an existing schedule (if so -> delete)
5. Make a new schedule (if...
For a client, an ezine is sent once a week (about 9000 subscribers).
We experienced serious troubles on the server (win 2000 sever, CF5, 512 mb).
So we decided to send the mail in batches of 150 every 5 minutes (just to be sure).
I think its a good idea to send the mail in 3 batches.
webron
>How do I know if RDS is running or not?
in the cf admin. Edit any datasource, click on the button 'browse server' at the right of the field 'Database File'.
If the 'Select File on the Server' just keeps displaying 'retrieving initial directories...' RDS is not running.
webron
Or you could use:
<cfloop query="qName">
<cfloop list="#columnList#" index="currentfield">
<CFOUTPUT>#evaluate(currentfield)#<CFOUTPUT>
</cfloop>
</cfloop>
The first loop loops over the rows and the second over every field.
webron
Hi,
you are trying to set a variable with a variable name
Remove the '#' and it wil work fine.
<cfset #test# = "e:\web\xyz\#variable#\images">
<cfset test = "e:\web\xyz\#variable#\images">
<cfdirectory
action="LIST"
directory="#test#"...
If the field in the db is a date, you might try:
<cfquery name="shwList" datasource="deco" dbtype="odbc">
select *
from mthSaleEvent
where mthEffective >= #createOdbcDate(now())#
AND mthExpires <= #createOdbcDate(now())#
order by mthExpires
</cfquery>
webron
I don't think its possible.
There is no lotus notes odbc-driver for coldfusion.
Maybe its possible to (shedule) the export of data from lotus notes as comma delimited data and write it to a file. I know lotus notes can perform scheduled tasks.
webron
Looks like printerid is not a field.
try
<cfquery datasource="printer" name="aboutPrinters">
Select * From Printer
</cfquery>
<cfoutput>#aboutPrinters.columnlist#</cfoutput>
maybe PrinterID is Printer_ID?
webron
Maybe you could check on duplicate entries
Query checkdupe checks for duplicates
If 'checkdupe' return a record -> update the record (or do nothing, whatever you want). Else insert the record.
<cfquery name="checkdupe" datasource="datasource">
select fieldname
from table...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.