Here is my code for generating a HTML table:
echo "<td data-label='word_match'> <input type='text' name='word_match' value
='".$row['word_match']."' /></td>";
echo "<td data-label='source_link'> <input type='text'
name='source_link' value ='".$row['source_link']."' /></td>";
I use this code to search for words from a web page:
$data = file_get_contents($row['source_link']);
$regex = '/ Galaxy/'; <<----- here is my problem i want use $row['word_match'] instead of galaxy(for example)
preg_match($regex,$data,$match);
var_dump($match);
echo $match[1];