I'm new to PHP regex. What I am trying to match is:
it's a mysql/php field.
Then if a match I take some action.
But it's not working any help appreciated. Thanks
while ( $row = mysql_fetch_row ( $result ) ) {...
.....
foreach($row as $data) {
if ( preg_match ( "/http://library\.dayton \.town\.net/", $data ) )
$data= 'You got a match';
.....
it's a mysql/php field.
Then if a match I take some action.
But it's not working any help appreciated. Thanks
while ( $row = mysql_fetch_row ( $result ) ) {...
.....
foreach($row as $data) {
if ( preg_match ( "/http://library\.dayton \.town\.net/", $data ) )
$data= 'You got a match';
.....
Comment