hey guys, lemme know that im an idiot here. i cant see why the records arent being stripped of <br />, they remain untouched.
thanks for any help
<?
include "common_db.inc";
$link_id = db_connect($default_dbname);
$query = mysql_query("SELECT CCID, comment FROM comments_calls", $link_id);
while ($result = mysql_fetch_array($query))
{
if ($comment = str_replace('<br />', '', $result[comment]))
{
echo "found!";
$query2 = mysql_query("UPDATE current_calls SET comment='$comment' WHERE CCID='$result[CCID]'", $link_id);
}
else
{
echo "not found!";
}
}
?>