Anuncios :

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

All product names are trademarks of their respective companies.Every effort is made to ensure content integrity. Use information on this site at your own risk. Information furnished in the blog is collected from various sites. This blog does not host any files on its server. Please report any broken links in comment. . Contact us at alongkorn.s(at)gmail.com