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