The code in your showthread.php is wrong - it is not needed.
What you need to do is add an extra line that does a query on your database to call up those variables in showthread.php (ie. does the opposite of the write query in newthread). You cannot get those variables without a db query unfortunately. Once you have called those variables, you don't need the code you have in the first post for showthread.php.
The $thread['trader_trade'] variable will automatically work in your template - no need to specify it - but you must add a db query first.
|