Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple flat file database

Status
Not open for further replies.

Brianfree

Programmer
Feb 6, 2008
220
GB
Hi, i am trying to write a simple php and flat file database to record fault issues..

I just need a form which i enter the following..

ID (auto increment)
Priority (High, Med, Low) Drop Down
Employee
Fault Description
Date/Time
Status (Open) by default

On submitting the form a webpage will display the issue(s) highest priority at the top to the lowest at the bottom (in date order). Will use colour like a traffic light to visually show the fault priority (red = high, amber = mid, green = low)

Once an issue has been resolved, i can select a fault and change the status to closed.

Please can someone help me with writing this… At a guess there will be 2 pages.. one to display the faults, the other to create / update??

Many thanks

Brian
 
Sure Brian

we can help. Where are you stuck? what code do you have so far?
 
Hi, erm… nothing really.. I have some local webspace i can use(wamp), just being browsing google for some examples.. think flat file will be easier as not going to hold lots of data.. will just be displayed on a computer screen in the office on a refresh every 30 mins… thought a php page will look much better that an excel spreadsheet..

sorry….
 
You probably lost many of us by specifying a "flat" file. It is certainly not "simple" to seek, sort and update rows in a flat file, especially when you have access to MySQL in WAMP.

But if you insist on doing it the hard way, there are existing libraries/projects that may help.

 
Hi, i will have a play around tonight and put somthing together.. i think i can create a form and write the data to a flat txt file, then have another page to display the data… not sure how to open a fault and mark as closed????

Will post my code tomorrow..


many thanks

brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top