廣告 :

alongkorn.s on February 9th, 2008

$mysql['host'] = "localhost";
$mysql['user'] = "sec"; // MySQL Username
$mysql['password'] = ""; // MySQL Password
$db = "sec"; // Database name
$table = "domain";

// Connect to MySQL
//
mysql_connect($mysql['host'], $mysql['user'], $mysql['password']) or die("Unable to connect to database");
mysql_query("USE $db;");

if (isset($_FILES['photo']))
{
echo 'File uploading..
‘;

$data = file_get_contents($_FILES['photo']['tmp_name']);
$data = addslashes($data);
//$data = mysql_real_escape_string($data);
// Preparing data to be used in MySQL query

$sql = “UPDATE {$table}
SET template= compress(’$data’)
“;
if(mysql_query($sql))

echo ‘Success: template uploaded’;
}
mysql_close();

?>

Template:

Continue reading about SSEC update whole template

Page copy protected against web site content infringement by Copyscape

所有產品名稱均為其各自companies.Every努力,以確保內容的完整性. 使用本網站的信息在你自己的風險. 在博客提供的信息是從不同地點收集. 此博客不承載任何其服務器上的文件. 請報告任何斷開的鏈接的評論. . 聯繫我們 alongkorn.s(在)gmail.com