The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Is this SQL query correct?
PHP Code:
|
#2
|
||||
|
||||
$wturid['userid'] is probably correct instead of just $wturid (assuming you are getting results from the first query). And the result of that would be $username['username']
|
#3
|
|||
|
|||
Hi Lynne,
Thanks for your reply. I changed it to below however it now comes back with the following error Quote:
PHP Code:
|
#4
|
||||
|
||||
I don't think you can do that. It needs to be something like (you may have to play with it a bit, I'm a trial and error coder):
PHP Code:
|
#5
|
||||
|
||||
Why not just use a join?
PHP Code:
|
#6
|
|||
|
|||
Quote:
Thanks for your reply. im still a bit confused regarding the joins so need to read up on them a bit more first. Its all the "u" and "ua" bits I dont quite get. --------------- Added [DATE]1244305258[/DATE] at [TIME]1244305258[/TIME] --------------- Ive been told the following but was wondering if anyone would be able to help. I feel im getting so close, but its driving me mad! Quote:
PHP Code:
|
#7
|
||||
|
||||
Quote:
PHP Code:
PHP Code:
PHP Code:
|
#8
|
|||
|
|||
Thanks Lynne,
That helped a lot! makes sense now! Any idea on why the $subjectname doesnt show at all? |
#9
|
|||
|
|||
username is set to 'unregistered' when not logged in. You should be checking if userid is set to 0 instead.
And if you want a great explanation of joins this article might be of help. http://www.codinghorror.com/blog/archives/000976.html |
#10
|
|||
|
|||
Hi RLShare,
Thats really appreciated. Thank you. Regarding checking if UserID is set to 0, is that an additional piece of code I will need, or an alteration of this code? PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|