If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > query not showing some results

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-03-04, 22:54
donwilson donwilson is offline
Registered User
 
Join Date: Apr 2004
Posts: 1
query not showing some results

Code:
SELECT COUNT(p.postid) AS numposts, u.* FROM bmb_posts p LEFT JOIN bmb_users u USING(userid) WHERE p.userid = u.userid AND u.name LIKE '" . $delimiter ."%' GROUP BY userid ORDER BY name ASC LIMIT 0,25
For some reason, if the user doesn't have any posts that reside in bmb_posts (marked by their userid in the table), then it doesn't show up the result.

Any way around this little problem?

EDIT: $delimiter is a letter (a, b, c, etc)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On