Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy. This forum is not for asking programming related questions.
raghavan20 wrote: It's always a pain to indent in this kind of situation in editors other than Dreamweaver where you have to use so many tabs to get the query in desired format.
Many editors will retain your indent for you. Crimson does, Zend does, Kate does...
Note: You can still use heredoc on your example, it's just that the ending delimiter needs to be right up against the margin wich can make the flow of the indentation in your code look a bit off. I agree that it doesn't look very attractive, but I still use heredoc a lot even when nested into the code, since it's just so nice to work with, esp. if you're embedding something like JavaScript into your source.