View Single Post
  #16  
Old 22nd December 2019, 19:16
Floky123 Floky123 is offline
Senior Member
 
Join Date: Nov 2013
Slovenia
Posts: 55
Default
Quote:
Originally Posted by firefly007 View Post
Look if u ran the query to add poster to the torrent table then poster will be added at the end of the table so the same needs to apply to the query. U cant added it where ever u like. So backup takeupload.php and then edit and find and replace the main insertion query with this...

PHP Code:

$ret 
sql_query("INSERT INTO torrents (search_text, filename, info_link, owner, visible, anonymous, zanri, free, info_hash, name, size, numfiles, type, descr, ori_descr, category, save_as, added, last_action, nfo, poster) VALUES (" .
        
implode(","array_map("sqlesc", array(searchfield("$shortfname $dname $torrent"), $fname$short_descr$info_link$CURUSER["id"], "no"$anonymous$zanri$freeleech$infohash$torrent$totallencount($filelist), $type$descr$descr$_POST["type"], $dname))) .
        
", '" get_date_time() . "', '" get_date_time() . "', $nfo$torrentposter)"); 
New problem that i have after this..

mysql puked: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '://tvoj-orion.si/torrents_poster/0831cc6a36b904497d9ea29f43d77b6c.jpg)' at line 1
Reply With Quote