Re-salut
/ re-hello Niki :)
vérifié sur torrents-details a la requête sql que t'es bien ca, pour le reste tous est #1 de mon coté:
==============================================================
checked on torrents-details at the sql request that you are fine, for the rest all is # 1 on my side:
categories.parent_cat as cat_parent, users.username, users.privacy FROM torrents LEFT JOIN categories ON torrents.category = categories.id
Exemple chez moi:
============
Example at home:
//GET ALL MYSQL VALUES FOR THIS TORRENT
$res = SQL_Query_exec("SELECT torrents.anon, torrents.safe, torrents.markedby, torrents.recommended, torrents.exclusif, torrents.thanks, torrents.seeders, torrents.tube, torrents.tube2, torrents.sticky, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.nfo, torrents.last_action, torrents.numratings, torrents.allocine, torrents.name, torrents.likes, torrents.love, torrents.angry, torrents.points, torrents.owner, torrents.save_as, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.external, torrents.image1, torrents.image2, torrents.announce, torrents.numfiles, torrents.freeleech, IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, torrents.numratings, categories.name AS cat_name, torrentlang.name AS lang_name, torrentlang.image AS lang_image, categories.parent_cat as cat_parent, users.username, users.privacy FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN torrentlang ON torrents.torrentlang = torrentlang.id LEFT JOIN users ON torrents.owner = users.id WHERE torrents.id = $id $wherex");
$row = mysqli_fetch_assoc($res);
