Ask a Question related to Dreamweaver AppDev, Design and Development.
-
ceaseanddesist #1
find a string in text
how would i search a recordset field tofind out if it contains a word or not
?
ads
ceaseanddesist Guest
-
FIND Amount in String
I have this: <cfset TempVar = "This is a test string to test the code"> I need to find the amount of times the word "test" appears in the above... -
Find and cut string
Hi, I'm new to PHP, so please bear with me! =) Is there a nice little function to find a string between to html-tags? I.e. let's say I have a... -
[PHP] find string
Isn't there an in_array function you can use? If (in_array($action, array(a1,a2,a3,a4)) { // do something } else { // do something else } -
find in string
How can i count the number of times a string appears within another string. Thanks a... -
Find string in web page
In article <4628ab88.0307091019.17e73755@posting.google.com>, Kirk Larsen <spamme@kirklarsen.com> wrote: : Sounds simple enough. I need to... -
Brandon Taylor #2
Re: find a string in text
VB Script:
if instr("val",1) then
do something
end if
HTH,
bT
"ceaseanddesist" <poorleno@ukip.com> wrote in message
news:d6v2jt$9n0$1@forums.macromedia.com...> how would i search a recordset field tofind out if it contains a word or
> not ?
>
> ads
>
Brandon Taylor Guest
-
gareth #3
Re: find a string in text
You didnt mention what language you were using. Brandon has given an ASP
solution, and theres a PHP one below:
if(substr_count($recordset_field,"word to find ") > 0){
// Word has been found, put relevant code in here
}
--
Gareth - TMM Dreamweaver
[url]http://www.dreamweavermxsupport.com/[/url]
[url]http://www.garethdp.com/[/url]
PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.
[url]http://www.phploginsuite.co.uk/[/url]
Co-Author: Dreamweaver MX: Instant Troubleshooter - Apress
Co-Author: Practical Intranet Development - Apress
Co-Author: Dreamweaver MX: Advanced PHP Web Development - Apress
Co-Author: Dreamweaver MX: PHP Web Development - Wrox
gareth Guest



Reply With Quote

