All pastes #561043 Raw Edit

Untitled

public text v1 · immutable
·published 2007-06-12 09:48 UTC
rendered paste body
<?phpt/cms" ), $gif->GetAnimation ( ) );
//$handle = fopen ("writetest.txt", "w+");
//fwrite ($handle, "data");
//fclose ($handle); 


$handle = FOpen ("Sport$mydate.gif", "w+");

FWrite ($handle, $gif->GetAnimation ( ));

fclose ($handle); 

// "Sport$mydate.gif";

//$updatesql=("UPDATE `CiscoData` SET `data` = '".addslashes($title)."' WHERE CONVERT(`type` USING utf8) = 'Sport'  LIMIT 1");

//$updatesql= "UPDATE `CiscoData` SET `data` = '$title' WHERE type = 'Sport'" ;
$updatesql=("UPDATE `CiscoData` SET `data` = '".addslashes($title)."' ,`filename` = '".addslashes("Sport$mydate.gif")."'  WHERE CONVERT( `type` USING utf8 ) = 'Sport' LIMIT 1 ");
$retid = mysql_db_query($db, $updatesql, $cid);

            if (!$retid) { echo( mysql_error()); }
//FWrite ( FOpen ("sport.gif" , "/home/sites/filter/bluecast/client/cms/frames/ " ), $gif->GetAnimation ( ) );



//Header ( 'Content-type:image/gif' );

 //echoechp


 //echo	 $gif->GetAnimation( );
mysql_close($cid);
exit;
 
  }          

}
}
}

?>