Problem system
#5

Quote:
Originally Posted by Vince
Посмотреть сообщение
The extra id column is not really necessary. The row can be uniquely identified by the two userids.

If you want to display the current friends with their name then you should probably use a join. The above approach may be viable if or when prepared queries are added to the MySQL plugin, but for now it's probably too intensive on the server. The query should look somewhat like this:
PHP код:
SELECT friends.FriendIDusers.username FROM friends INNER JOIN users ON friends.friendID users.id WHERE AddBy = %
I tried like you said but still not working.
Reply


Messages In This Thread
Problem system - by Edw - 05.01.2016, 16:22
Re: Problem system - by Vince - 05.01.2016, 17:02
Re: Problem system - by Edw - 05.01.2016, 17:49
Re: Problem system - by Edw - 05.01.2016, 18:47
Re: Problem system - by Edw - 05.01.2016, 20:27

Forum Jump:


Users browsing this thread: 1 Guest(s)