However I am getting this error message:
Warning: REG_BADRPT
I am not too sure how the code refers to the url though
Here is how I attempted it:
$sql = "SELECT * FROM site_stats WHERE referer LIKE '%google%' ";
$result = mysql_query($sql) or die(mysql_error());
while ($i = mysql_fetch_array($result)) {
$url=$i["referer"];
$query = $_GET["q"];
echo "$query";
$url = split("+",$query);
for ($i=0;$i<=count($words);$i++) {
echo($words[$i]);
}