...string .+ and doing the replace there. For example:
I want to take string:
and have it match with:
REReplaceNoCase(string, "\[url=(^\]*)\](.*)\[/url\]","<a href=""\1"" target=""_blank"" class=""underline"">\2</a>","ALL")
However, it is matching the ENTIRE string, rather then...
is there a way to create a mapping within application.cfm? The client I'm working for has two development projects on one server, with /templates/ on one IP mapped to one drive, and I'm trying to get /templates/ on another IP with /templates/ mapped to another area. Has anyone dealt with a...
probably want to add something that checks for a >, otherwise, a post starting with < alskdjflaskdjflaskjdflaksdjflaskdjflakdjla
will make the whole thing blank ...
on .execute, the recordset object is being created anyways, but with defaults on. It shouldn't be all that much slow to create your recordset objects beforehand ......
how many execute's do you have on your page anyways?
Client variables and server variables cannot read each other in the method you described. You're going to have to use request variables via the URL or through form processing. Set the VBScript variable to put put in a form, and directed to another page, then call it by doing a...
i already looked at that. there's got to be a faster and easier way then creating a query, then populating it. I'd just rather WriteOutPut(recordset(column)), then go through the slow process of creating the query. Any ideas?
tricky, you'd have to use an HTTP Component that returns whether a file exists or not. But even that might not work because some web servers return 404, so you'd have to parse and see if the returned page contains 404.
for HTTP components try Mabry or Software Artisans.
i tried that, I'm just trying to use the simple Microsoft ADO Recordset Object, but I have a problem when I try to refer to the value on one line.
Instead of oRs.Fields("FieldName").value, I have to set:
MyFields = oRs.Fields
MyFieldName = MyFields("FieldName")
MyFieldValue...
it's better to use stored procedures. Use CFQuery to call your delete procedure. You don't have to pass in CF Time if you don't want, just use:
delete from tablename where dateField < getdate()-2
the -2 is for days(the default SQL setting).
hi, i have a script that calls a recordset, and I want to print the recordset value, but it won't allow me to call multiple properties in one go, I have to set a variable, then set another, to get to the third level properties. Is there a way to do this is CF? For example, I want to call...
I was wondering how I would go about creating a search query that allowed for an AND or OR. I've seen it on many search engines, but I can't get the logic right when searching multiple fields. Is there a way in SQL to dp "where columnname1, columname2 like '%string%' and columnname1...
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.