preg_replace question


Posted on 16th Feb 2014 07:03 pm by admin

Hello!!

I hope someone can help me with preg_replace.

I load two tables from an external website, now I would like to highlight a complete tr (background color) if there is a td with a known string in it.

So, how can I do this?

Thanks

168 Like 31 Dislike
Previous php-forum Next php-forum
Other php-forum

Access database inside of a validation class
Hello,

For quite some time, I have been using functions to validate form input and access the

Using two $_POST Function / Switch () statements, second does not work.
Hi all. I’m new to php and am having a problem getting $_POST Function / switch () to work. I

Calculating a rating by adding number of points and dividing by number of items
I have a site that users can post links to files to download. They can rate these files on a 1-5 sca

Using unserialize()
Hi there.

I have some data in my database that is serialized.

e.g.

a:2:{i:0

Table colours fail when extra row added
Hey Gurus,

I got a weird problem with formating the colour of a table made in php. Everything

weeks in a year
hi,

i found this snippet on php.net
QuoteFor the week number for weeks starting on Sunday:

Strange Oracle Query problem
Ok So I have this PHP class that talks to a Javascript class that basically creates a table of infor

Move array index to end
Hey guys,
Quick question:

I have an array that looks like this:
Code: [Select]$var =

ctype() validation - allowing illegal characters
Hello,
I use ctype() to filter and validate a user form. However, I am trying to allow certain c

List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash