Hi!
Im trying to change some part of Srinivas wall script.
For the moment the script only loops out data as I self written.
But I want to see data from my friends to, not only my data.
MySQL-Db:
addressbook
ID
owner
friend
verified
messages
msg_id
message
uid_fk
uploads
users
uid
username
And this code lists all messages, but I want to list my friends message in same row. What am I doing wrong?
$query = mysql_query("SELECT M.msg_id, M.uid_fk, M.message, M.created, U.username,M.uploads FROM messages M, users U JOIN adressbok ON adressbok.owner='$uid' AND adressbok.verified=1 WHERE M.uid_fk=U.uid AND M.uid_fk='$uid' $morequery order by M.msg_id desc limit " .$this->perpage) or die(mysql_error());