Olá pessoal, sei muito pouco de mysql, preciso muito da ajuda de vocês!
Tabela 1:
`id` int(11) NOT NULL, `id_friend` int(11) NOT NULL, `accept` int(1) NOT NULL
Tabela 2:
`id` int(11) NOT NULL, `name` text NOT NULL, `lastname` text NOT NULL, `email` text NOT NULL, `password` text NOT NULL, `submsg` text NOT NULL, `birthdate` date NOT NULL, `picture` text NOT NULL, `status` text NOT NULL
Aí faço o login normalmente na pagina e após isso, gostaria de exibir na página todos os dados da tabela 1, mostrando apenas os dados do mesmo id logado e pegando o id_friend da tabela 1, mas mostrando as informações da tabela 2.
Espero que dê para entender... Desde já agradeço.