A mate of mine and I are embarking on social media creation. We've got most of it lined up in our heads, but he's struggling with lack of knowledge on how to create log-in pages in PHP, how many SQL database pulls he should be looking to do, best ways to do this, that and the other etc. I said to him there must be a book out there that talks about the best practices with this sort of thing and would guide you through how to make a log-in or the like. I've had a look on amazon.co.uk and amazon.com and it seems there is none, but I thought I would ask here aswell. If anyone knows of such a book that deals in best practices of PHP and in particular something social-network orientated that would be fantastic.