![]() |
Is this SQL query correct?
PHP Code:
|
$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']
|
Hi Lynne,
Thanks for your reply. I changed it to below however it now comes back with the following error Quote:
PHP Code:
|
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:
|
Why not just use a join?
PHP Code:
|
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:
|
Quote:
PHP Code:
PHP Code:
PHP Code:
|
Thanks Lynne,
That helped a lot! makes sense now! Any idea on why the $subjectname doesnt show at all? |
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 |
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:
|
All times are GMT. The time now is 10:40 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|