The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Querying db for missing table row.
Hi,
I want to query two tables in my database. Table 1 is a list of images and artists (image #, artistuser, imagetitle). When a user comments on one of these images Table 2 is updated with the username and comment (Image #, commentuser, comment). I'd like to write a loop to display to the user every image in Table 1 that does not have a corresponding comment row in Table 2. I can work out the loop but I'm lost on writing the sql query where a row is nonexistant. Basically I needsomething like: where table1.image# = table2.image# and $bbuserinfo[username] does not exist in table2.commentuser Is this possible? Any help would be appreciated. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|