PHP
  Home arrow PHP arrow Page 2 - Project Management: The Application
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
PHP

Project Management: The Application
By: David Web
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 5
    2008-06-02


    Table of Contents:
  • Project Management: The Application
  • The SQL
  • The main.php script
  • Code Explained

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Project Management: The Application - The SQL
    ( Page 2 of 4 )


    Below is the SQL for each of the tables with sample data included. Just copy and paste it into your MySQL admin client application:

    --

    -- Table structure for table `files`

    --


    CREATE TABLE `files` (

    `fid` int(4) NOT NULL auto_increment,

    `filename` varchar(100) NOT NULL default '',

    `p_id` int(4) NOT NULL default '0',

    PRIMARY KEY (`fid`)

    ) TYPE=MyISAM AUTO_INCREMENT=7 ;


    --

    -- Dumping data for table `files`

    --


    INSERT INTO `files` VALUES (1, 'projectX.png', 1);

    INSERT INTO `files` VALUES (2, 'projectY.png', 2);

    INSERT INTO `files` VALUES (3, 'anotherfile.png', 1);

    INSERT INTO `files` VALUES (4, 'file.png', 2);

    INSERT INTO `files` VALUES (5, 'maintop-satin.jpg', 3);

    INSERT INTO `files` VALUES (6, 'Blue hills.jpg', 3);


    -- --------------------------------------------------------


    --

    -- Table structure for table `projects`

    --


    CREATE TABLE `projects` (

    `pid` int(4) NOT NULL auto_increment,

    `title` varchar(100) NOT NULL default '',

    `project_description` text NOT NULL,

    `status` enum('overdue','completed','pending') NOT NULL default 'overdue',

    `due_dt` date NOT NULL default '0000-00-00',

    `create_dt` date NOT NULL default '0000-00-00',

    `u_id` int(4) NOT NULL default '0',

    PRIMARY KEY (`pid`)

    ) TYPE=MyISAM AUTO_INCREMENT=4 ;


    --

    -- Dumping data for table `projects`

    --


    INSERT INTO `projects` VALUES (1, 'Project X', 'Secret project6', 'overdue', '2007-03-22', '2007-02-16', 1);

    INSERT INTO `projects` VALUES (2, 'Project Y', 'Secret project Y', 'completed', '2007-02-18', '2007-02-18', 2);

    INSERT INTO `projects` VALUES (3, 'New1', 'gufgjkk', 'pending', '2007-05-25', '2007-02-19', 1);


    -- --------------------------------------------------------


    --

    -- Table structure for table `staff`

    --


    CREATE TABLE `staff` (

    `sid` int(4) NOT NULL auto_increment,

    `p_id` int(4) NOT NULL default '0',

    `name` varchar(100) NOT NULL default '',

    PRIMARY KEY (`sid`)

    ) TYPE=MyISAM AUTO_INCREMENT=6 ;


    --

    -- Dumping data for table `staff`

    --


    INSERT INTO `staff` VALUES (1, 1, 'Jack Dee');

    INSERT INTO `staff` VALUES (2, 2, 'maria.garises');

    INSERT INTO `staff` VALUES (3, 1, 'nico.brand');

    INSERT INTO `staff` VALUES (4, 2, 'john.doe');

    INSERT INTO `staff` VALUES (5, 3, 'john dean');


    -- --------------------------------------------------------


    --

    -- Table structure for table `tasks`

    --


    CREATE TABLE `tasks` (

    `tid` int(4) NOT NULL auto_increment,

    `p_id` int(4) NOT NULL default '0',

    `task_description` text NOT NULL,

    `complete_by` date NOT NULL default '0000-00-00',

    PRIMARY KEY (`tid`)

    ) TYPE=MyISAM AUTO_INCREMENT=3 ;


    --

    -- Dumping data for table `tasks`

    --


    INSERT INTO `tasks` VALUES (1, 1, 'some secret stuff, hush hush', '0000-00-00');

    INSERT INTO `tasks` VALUES (2, 2, 'hush, hush ', '0000-00-00');




     
     
    >>> More PHP Articles          >>> More By David Web
     

       

    PHP ARTICLES

    - Implementing Factory Methods in PHP 5
    - Merging a File Split for FTP Upload using PHP
    - Getting Data from Yahoo Site Explorer Inboun...
    - Method Chaining: Adding More Selecting Metho...
    - How to Split a File During an FTP Upload Usi...
    - Expanding a Custom CodeIgniter Library with ...
    - Using the Yahoo Site Explorer Inbound Links ...
    - Building a CodeIgniter Custom Library with M...
    - Building an E-mini Trading System Using PHP ...
    - Completing the MySQL Class with Method Chain...
    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek