The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
can some one tell me a little about LEFT JOIN ?
can any one tell me a little about these in a data base query vb uses please ?
INNER JOIN ? LEFT JOIN ? TABLE_PREFIX ? and if there are any others please do tell |
#2
|
||||
|
||||
table prefix was just done in another thread
INNER JOIN's and LEFT JOIN's are a method used to combine two or more tables. |
#3
|
|||
|
|||
i have made a database table but i would like a little help with a query
this is my table can u use this: PHP Code:
PHP Code:
|
#4
|
|||
|
|||
you know , best way to know if something working
is to test it so test your code and if its not working post here the error so we can help you out.... |
#5
|
||||
|
||||
Quote:
The part in the IF case. |
#6
|
||||
|
||||
Wow, that's a rare use of IF.
Basically it means that the SELECT will only pull the username from the db if the userid is not equal to zero, otherwise it will return NULL (the missing third parameter, which defaults to NULL). Can you say 'NULL AS username' in a SELECT statement and it assign the value of NULL to username ? - I'm not sure - it might generate an error. I'm certainly not sure why you would want to do this, it seems kinda pointless. |
#7
|
|||
|
|||
what im trying to do is be able to view all info in the database table called serial and the other items hold different things...
1.. the serialid 2.. the serialname this is the part that will hold the name of the text or post name 3.. the userid this is the part that holds the user name that makes the posts 4.. the dateline this is the date that the post was made 5.. the serialnumber this is the full post that was made all the text in the post and all what im wanting to do is also make a add forum and a submit with it as well for a new forum and also have an other php script that will display the post contents as well but the only problem im having is the database not to sure on how to make all the right commands and all so please help me with any ideas or any thing else thanks so much :smoke: |
#8
|
|||
|
|||
PHP Code:
PHP Code:
|
#9
|
|||
|
|||
now if i was to make a forum to add items how would i do that do i use for the database INSTERT or UPDATE ?
also what tables would i need to use in order to enter the info in? cause im adding in a name of the item and then adding the user who posted the item and also the items contents as well ? can u be able to give me an idea on how to do this plz ? thanks |
#10
|
||||
|
||||
you cannot use JOIN in insert/update queries, just in select queries
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|