Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Best way...

 
   Database Help (Home) -> PHP RSS
Next:  can't send Email from Access  
Author Message
Bob Bedford

External


Since: Feb 08, 2005
Posts: 1



(Msg. 1) Posted: Thu Feb 10, 2005 8:40 am
Post subject: Best way...
Archived from groups: comp>lang>php (more info?)

I read records on a DB and concat the content to a string to write to the
browser.

I'd like to add a new feature.
If the content contains some word (prefilled list), then I must apply some
formatting (<b> tag)

My question is:
What is the better and faster way to do so ?
Should I fill a array and try with "in_array" function ?

It's there a better way ?

 >> Stay informed about: Best way... 
Back to top
Login to vote
Geoff Berrow1

External


Since: Dec 24, 2003
Posts: 359



(Msg. 2) Posted: Thu Feb 10, 2005 11:40 am
Post subject: Re: Best way... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I noticed that Message-ID: <420b58e3$0$3407$5402220f@news.sunrise.ch>
from Bob Bedford contained the following:

 >I'd like to add a new feature.
 >If the content contains some word (prefilled list), then I must apply some
 >formatting (<b> tag)
 >
 >My question is:
 >What is the better and faster way to do so ?
 >Should I fill a array and try with "in_array" function ?
 >
 >It's there a better way ?

str_replace() will accept arrays.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs <a style='text-decoration: underline;' href="http://www.ckdog.co.uk/rfdmaker/" target="_blank">http://www.ckdog.co.uk/rfdmaker/</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Best way... 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
help needed for mailing HTMl content - hai...can someone plzz help me in writing a class to send Mails with HTML content. Try to suggest some working Class library if there is any on the web so that i may not re-invent the wheel. thanx...

Output XML file! - I have a XML variable (string). I want to output it to a XML file. I'm using <?php header("Content-type: application/gps"); header("Content-Disposition: attachment; filename=paring.xml"); print $xml; ?> But I get an error ...

I need a fat server..... - I am looking for an inexpensive or free hosting server where I can store extra user uploaded files (beyond my current host). Don't care about the bells and whistles, just need tons of bulk space that can be hyperlinked and FTP'd to mostly. Any pointers...

PHP Scripts and Creating Files - Hello Everyone: I have a PHP script that attempts to create a temporary file to be used during processing. The script is owned by my username (bryanrme) on the server. When the script attempts to create the temporary file, I get a "failed to open...

saving a session - Hi Folks I have been trying to find out how I can save a session - so far without success. I use PHP in combination with MySql and I would like my users to be able to save their sessions in my database so that they can retrieve it later... Meanwhile,....
   Database Help (Home) -> PHP All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]