hello and when you upload a torrent with the tmdb link then click on send I have a syntax error like below but when you click on browse torrent the torrent is present with the link and the tmdb layout
Database Error in torrents-upload.php on line 293: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'tmdb= '2026-01-22 18:16:21',visible='yes' WHERE id='22'' at line 1. Query was: UPDATE torrents SET leechers='-1', seeders='-1',times_completed='-1',last_action,tmdb= '2026-01-22 18:16:21',visible='yes' WHERE id='22'.
my code in torrents-upload.php is like below:
Code :
thank you in advance for your help because I have been modifying for hours and still the same problem
Database Error in torrents-upload.php on line 293: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'tmdb= '2026-01-22 18:16:21',visible='yes' WHERE id='22'' at line 1. Query was: UPDATE torrents SET leechers='-1', seeders='-1',times_completed='-1',last_action,tmdb= '2026-01-22 18:16:21',visible='yes' WHERE id='22'.
my code in torrents-upload.php is like below:
Code :
$ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, last_action, tmdb) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr).", '".$inames[0]."', '".$inames[1]."', '".$catid."', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecount."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','$anon', '".get_date_time()."', ".sqlesc($tmdb).")");
thank you in advance for your help because I have been modifying for hours and still the same problem
Last edited by niki on 2026-01-22 18:53:16