I am using dreamweaver MX to create PHP pages. When i try to connect to MSQL Database (locally) I get an error

" Http error Code 502 Bad Gateway"

What does this error mean and more importantly how do I resolve this? Can Anyone please help me out. I am running win XP pro, ISS 5. Everything locally. Thank you