Why is it

… that there seem to be so many SQL-related questions in the PHP board?

Yes, I know most of the questions are framed with PHP coding. But the actual questions themselves relate to the data returned by the SQL query itself, not how the PHP code uses that data.

So why post in the PHP board, and not the Databases board, or even the [url=http://www.sitepoint.com/forums/forumdisplay.php?f=182]MySQL board itself? (Since most of the noted questions in this PHP board are MySQL-related).

/grumble
/bah-humbug

:rolleyes:

That would be the CSS forum :slight_smile:

Where is the best place to post a question about an IE 6 problem? Specifically about background images used in a UL for a Nav bar. In IE 7 the bg images are visible in IE 6 they are invisible. I can provide code but before I do I would like to know best place to post.

Before anyone says why bother, let me say it is a mandate of the project. I’ve scoured the internet and found this: UL {position:relative;} but this did not fix it. I also discovered the setting of a height attribute to 1% but haven’t yet had a chance today to access the code. (it is still early morning on the east coast of the American continent.)

Because this thread has become featured, so the SP team obviously believe it is a point worth making. :wink:

It’s probably because their questions get a better response in the PHP forum. Why not just let it be?

If you see an SQL question posted in the PHP forum then use the orange flag icon to report that it is in the wrong forum so it can be moved.

The same goes for any other threads in the wrong forum.

As others has mentioned, the main issue is that they dont know where in the code the issue is located. Or in some cases even worse, they dont even know there is a difference between PHP and SQL.

Word!

I am certain what you guys actually mean is that most PHP developers has a basic understanding of SQL. There is a big difference from being able to write a query to fetch data, to having a good understanding of SQL.

My experience is that few PHP developers have a good grasp of SQL programming, considering mainly creating efficient database models, efficient queries etc.

I agree that a majority of the time it’s because the OP doesn’t know.

For example “____ doesn’t work!” might involve PHP, MySQL, HTML, CSS, and javascript. So where to post? Easy if you know what’s causing the problem, not so much if you don’t.

Hopefully the new New to the Program Your Site forums? Please read this. sticky will be read and prove helpful.

That’s an option the board admins have (whether to leave a follow-on link)… it’s generally used so that the person posting the question doesnt think their question has been deleted.

'xactly. :slight_smile:

because they don’t know what they are doing.

The thing is you have to have a pretty good understanding SQL to be able to achieve anything useful in PHP. That is why those types of questions end up here and actually get a good answer most of the time.

I have yet to come across a job opening that requires PHP with database knowledge optional. You really need to know SQL to be useful with PHP. At least that is what people expect it seems.

The process really is a simple one if you understand SQL. If the application code runs but the database does not return the expected results, update, etc than echo SQL and test for accuracy. However, without a solid understanding of SQL its difficult to do that. That seems to cover the majority of those types of question. Either the SQL is completely wrong or something is lost when translating a static query to a dynamic one using the application language.

I think many of them don’t really have a clue if the problem is in the sql or the php code. Or even that there is a dedicated MySQL forum.

Well, if I believed that someone posts in the wrong forum on purpose, I’d just ignore him :slight_smile: Never happened so far. And I really don’t think you’ll get an answer sooner in the PHP forum than in the MySQL one.
Besides, posting in the right forum increases your chances of getting a CORRECT answer.

True. But I was feeling in a contrary mood so I thought I’d light the touch paper. :smiley:

Well yes if they were completely different forums. But most PHP developers do tend to use mysql databases anyway and have a good grasp of it. So I don’t think they would get an incorrect answer here.

But yeah, they should post in the right forum.

But then again, this topic has nothing to do with php the language either.

A related question is why do those threads stay in the PHP forum?

This board is more popular and you will probably get an answer much quicker.

I always flag MySQL questions for moving to the MySQL forum. Beyond that, it’s up to the forum admind so decide what to do about it.

Actually the problem or my opinion is, though it is a SQL problem, some programmers things that…it is related to PHP, why bcoz they are using PHP code and it is not working properly.
so they think that, it should be a part of PHP rather than MySQL.bcoz the interface is PHP, my point is clear ?