What the heck? That's a wide area you're talking about man!
If I would be you, I'd start with a book about PHP from SitePoint.Com, the books do cost some money but they are very informative. I learned a lot from them already. The book covers working with PHP & SQL (AFAIR). To learn about security I'd check out some underground forums and learn it the hard way, there might be good books too though.