(.*)|Ui", $html, $title); preg_match("|]*description[^>]*content=\"([^>]+)\"[^>]*>|Ui",$html, $desc); preg_match("|]*keywords[^>]*content=\"([^>]+)\"[^>]*>|Ui",$html, $keys); if($title[1] and $desc[1]){ $link=mysql_connect($db_host, $db_user, $db_pass); $db_selected =mysql_select_db($db, $link); $title=mysql_real_escape_string($title[1]); $desc=mysql_real_escape_string($desc[1]); $keys=mysql_real_escape_string($keys[1]); $url=mysql_real_escape_string($url); $sql="select id from `data` where url = \"$url\""; $result=mysql_query($sql); $row=mysql_fetch_row($result); if(!$row){ $msg= "Good, we added your website."; mysql_query("insert into `data` (title, keyword, `desc`, url) VALUES (\"$title\", \"$keys\", \"$desc\", \"$url\")"); }else{ $msg= "Good, we updated your record."; mysql_query("update `data` set title=\"$title\", keyword=\"$keys\", `desc`=\"$desc\" where id=\"$row[0]\""); } } else { $msg= "Please check your Metatags, the title and description are required."; } } ?> Add your Website to our Search Index
LOGO
Back

Add your Website

Url: