I need a function to cleanup.php file to count how much uploaded torrents and forum posts have every user.
Quote:
$uploaded_torrents = mysql_query("SELECT COUNT(*) FROM torrents WHERE owner=" . $user["id"] ."") or print(mysql_error());
|
Quote:
$forum_posts = mysql_query("SELECT COUNT(*) FROM posts WHERE userid=" . $user['id']) or sqlerr();
|
Where is the mistake because the lines don't work.
P.S: I use Tbdev 2009!