snowboardr
Programmer
I can't seem to get this to work! It does display records, however they are all the same person.
I have two tables
users / friendlist
friendlist:
fid | fidon | fidlisted
1 3 4
2 3 5
3 3 6
4 3 7
users:
uid | uname
4 jason
5 bob
6 eric
7 smith
I want to display every friend's name from the table friendlist with a fidon id=3
Thanks in advance.
I have two tables
users / friendlist
friendlist:
fid | fidon | fidlisted
1 3 4
2 3 5
3 3 6
4 3 7
users:
uid | uname
4 jason
5 bob
6 eric
7 smith
I want to display every friend's name from the table friendlist with a fidon id=3
Code:
sql = "SELECT "_
& "friendlist.fidon," _
& "friendlist.fidlisted," _
& "users.uid," _
& "users.uname" _
& " FROM friendlist LEFT JOIN users on friendlist.fidlisted=users.uid WHERE friendlist.fidon=" & fuid
Thanks in advance.