Jump to content

External Link Checker?


Lamez

Recommended Posts

Well wait hold up.  If I understand you correct, you have a db table and each row has a link and overall, that table is your whitelist, right?  You don't need to check the whitelist in php.  Just do something like this:

 

$link = mysql_real_escape_string($_POST['linkcolumn']);
$sql = "SELECT linkcolumn from whitelist where linkcolumn = '$link'";
$result = mysql_query($sql);
if ($result) {
   // link is on the whitelist, do something
} else {
   // link is not on whitelist, do something
}

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.