Jump to content

Query isn't working - no errors - any ideas?


Perad

Recommended Posts

SELECT u.name, u.email, u.id, ug.group_id FROM users AS u INNER JOIN users_groups AS ug ON ug.user_id = u.id WHERE u.id = 10 

 

users

- id

- name

- email

- password

 

users_groups

- user_id

- group_id

 

This should return 1 row with the following

id, name, email, group_id

 

Currently returns 0 rows. No idea why, there are no errors. The record exists in the user table and group table. Can anyone see anything wrong with the query?

Link to comment
https://forums.phpfreaks.com/topic/190932-query-isnt-working-no-errors-any-ideas/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.