Location: PHPKode > projects > Online Fantasy Football League > offl-0.2.6/www/updateroster-CBS-nfl_profile.php
<?php 
include ("htmlparser.inc");
 
require_once("offlconfig.php"); 
require_once($DOC_ROOT . "/lib/header.php"); 
 
$sqllist = Array();
 
//change all nfl_profiles to point to CBS Sportsline
$sqllist[0] = "update players set nfl_profile = replace(nfl_profile,'http://www.nfl.com/players/playerpage/','http://www.sportsline.com/nfl/players/playerpage/')";

$db = new OFFL_DBObject(); 
$dbconn = $db->getConn(); 
 
foreach ($sqllist as $sql) { 
	$result = mysql_query($sql, $dbconn); 
	echo "$result - $sql<br>\n"; 
} 
 
$db->closeDB(); 
 
echo "<h2>Players NFL Profile update complete!</h2>"; 
echo "This only needs to be executed once!";
 
?>
Return current item: Online Fantasy Football League