Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am done with HTML and CSS. Now I want to know whether I should study PHP and SQL together or individually. Basically, I have this book, O'Reily Head First PHP and MySQL. Should I take this book or start with a book for PHP only? And is there any difference?


migration rejected from stackoverflow.com Nov 6 '13 at 0:16

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by gnat, GlenH7, MichaelT, Dan Pichelman, Robert Harvey Nov 6 '13 at 0:16

This question appears to be off-topic. The users who voted to close gave these specific reasons:

  • "Questions about what language, technology, or project one should take up next are off topic on Programmers, as they can only attract subjective opinions for answers. There are too many individual factors behind the question to create answers that will have lasting value. You may be able to get help in The Whiteboard, our chat room." – Dan Pichelman, Robert Harvey
  • "Questions seeking career or education advice are off topic on Programmers. They are only meaningful to the asker and do not generate lasting value for the broader programming community. Furthermore, in most cases, any answer is going to be a subjective opinion that may not take into account all the nuances of a (your) particular circumstance." – GlenH7, MichaelT
If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers 2

It really depends on your programming background. If all you have worked with is html and css then you'll find that working with php will be quite different and will take much time to master. However, if you do have other programming experience (i.e. c/c++, java, etc), then you likely will have no problem at all studying them together. That being said either way you may be fine to study them together as sql really isn't that difficult to pick up the basics, and is more than a little handy to use in web applications. Ultimately you'll have to decide how you feel you're handling it as you start learning either or both. Another option might be to study the basics of SQL first (shouldn't take you very long to do this) then start in on studying both of them together.


I'd say separate.

I've seen too many confused beginners unable to clearly distinguish the SQL part from the PHP part, concatenating values into queries and happily mixing SQL queries, PHP code, HTML, and javascript, and then wondering why they can't execute javascript in their SQL queries, or why they can't do SQL queries in a javascript function or something.

Grasping HTTP, PHP and HTML is confusing enough as it is.


Not the answer you're looking for? Browse other questions tagged or ask your own question.