tags:

views:

16

answers:

1

Hello!

Is it possible to perform a MySQL search and replace while honoring wildcards?

eg:

$search = "id='%wildcard%-houselisting-rental'>";
$replace = "class='house_rentals'>";
$query = "UPDATE tables SET field = replace(field,'$search','$replace')";
$result = mysql_query($query);

I appreciate any advise on the subject -h

A: 

I found out this wasn't possible for mysql.

atwellpub