Community & Support

Direct access to drupal database - is it a good idea ?

Hi,
I am a PHP/MySQL developer and new to Drupal. I'm trying to create a new web community using it. But using the Drupal nodes and blocks is a little bit confusing to me, therefore, I'm trying to pull the contents(for example, user info, forum topics, article teasers, etc) directly from the database and display them wherever I want in the website.

-So, would it be a good idea to directly use the mysql_query() function or the Drupal db_fetch_array() to access the DB to pull the data ?

-Also I have created some new tables in the same database where the admin specified position for the contents will be saved. Does this make my website vulnerable to attacks ?

Any advice would be appreciated and please perdon my bad English :) . Thank you.

Comments

Why wouldn't you use some

Why wouldn't you use some other framework or write your own custom site if you wanted to do this? Seems like you're missing the whole point of drupal by doing it that way.

You're right

Thanks. :) That helps a lot.

_

Seriously-- what's the point of using a cms if you're only going to bypass it and custom code almost everything yourself anyway? Why not use rails or django in that case?

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

nobody click here