I would greatly appreciate it if some one can please help me before I throw my laptop and remake the Office Space scene, with the printer. I am working on a group project for my class and we are using drupal. We are all relatively new to Durpal, PHP, and Databases (mysql). We were able to get someone in the IT department at our school to install Drupal for us. We have a php, apache, and a mysql database. So everything is up and running. But what we're trying to do is to create tables in our database. Any idea how? We've looked at this site... http://drupal.org/getting-started/6/install/create-database... but this is all before installation. Any idea how to do it after installation?
Can someone please help save my group and my laptop.
Thank you

Comments

nevets’s picture

If Drupal is installed (ie you can see it with a web browser) the tables are installed.

lsommerer’s picture

Are you trying to create the database that Drupal will use, or are you adding a table to that database for another purpose?

Crystillians’s picture

I want to add tables to the database for another purpose.

alan d.’s picture

Check out http://api.drupal.org/api/file/developer/examples/node_example.install/5...

Search for more examples by adding example in the file/function search on the LHS sidebar

This is used by a module when it is enabled for the first time. It the schema changes, disable and uninstall your module to delete the existing tables and re-enable to install the updated schema. This saves having to learn the update methods. THIS DROPS THE TABLES if hook_uninstall is correctly set up, thus all data in these tables are lost.

Try the Devel module. This can really help, particular the dpm($var) and dpr($var) functions.


Alan Davison
www.caignwebs.com.au

Alan Davison