Try using instead of
PHP Code:
$dc_name = strip_tags($dc);
$dc_name = mysql_real_escape_string($dc_name);
$dc_link = str_replace('<a href = "','<a href="http://www.dci.org', $dc);
this
PHP Code:
$dc_link = str_replace('<a href = "','<a href="http://www.dci.org', $dc);
/**
* Escape strings so they can be inserted into database querys
*
* @param string $value String or number that goes into query
* @todo if PHP < 4.3 use mysql_escape_string in place of mysql_real_escape_string
*/
function quoteSmart($value)
{
// Stripslashes
if (get_magic_quotes_gpc()) {
$value = stripslashes($value);
}
// Quote if not a number or a numeric string
if (!is_numeric($value)) {
$value = mysql_real_escape_string($value);
}
return $value;
}
$dcname = quoteSmart($dc);
$dclink = quoteSmart($dclink);
Bookmarks