rendered paste body$mysql = new MySql;
$mysql->QueryInsert("INSERT INTO 'torrentdb' (
'filename',
'hash',
'description',
'tags',
'announce',
'scrape',
'magnet',
'creation',
'date',
'comment',
'created_w',
'created_b',
'encoding',
'seedurl',
'md5',
'sha1',
'internal_name',
'multifile',
'files',
'private',
'f_size',
'p_size',
't_size',
'source',
'seeds',
'leechers',
'complete',
'bandwidth',
'category',
'id'
) VALUES (
'{$torrent['name']}',
'{$torrent['hash']}',
'{$torrent['description']}',
'{$torrent['tags']}',
'{$torrent['announce']}',
'{$torrent['scrape']}',
'{$torrent['magnet']}',
'{$torrent['creation date']}',
NOW(),
'{$torrent['comment']}',
'{$torrent['created by']}',
'{$torrent['user-agent']}',
'{$torrent['encoding']}',
'{$torrent['httpseeds']}',
'{$torrent['info']['md5sum']}',
'{$torrent['info']['sha1']}',
'{$torrent['info']['name']}',
'0',
'{$torrent['info']['files']}',
'{$torrent['private']}',
'{$torrent['info']['length']}',
'{$torrent['info']['piece length']}',
'{$torrent['size']}',
'{$torrent['info']['source']}',
'0',
'0',
'0',
'0',
'{$torrent['category']}',
');");