I work in a small enterprise as a systems admin. I am currently just finishing up an intranet site and am using php with mySQL on a Red hat 9 Linux machine.
I want to incorporate a fault logging system into this intranet site, whereby users can log a fault through a php page and it is entered into a mySQL db.
The fields which i will use in the db are job_no, name, contact_no, description, status, notes.
The problem i have is that i want the job_no to be a unique number which does not get repeated because i want users to be able to use the job_no to check the status of their problem. I have decided to use julian dates, which are assigned to the job when the user goes to the intranet fault logging page. This should not be able to be changed by the user. The PHP page should assign the value to the job and pass it to the mySQL db and insert it into the job_no column.
Anyone have an idea of how i can implement this? any help would be much appreciated
I want to incorporate a fault logging system into this intranet site, whereby users can log a fault through a php page and it is entered into a mySQL db.
The fields which i will use in the db are job_no, name, contact_no, description, status, notes.
The problem i have is that i want the job_no to be a unique number which does not get repeated because i want users to be able to use the job_no to check the status of their problem. I have decided to use julian dates, which are assigned to the job when the user goes to the intranet fault logging page. This should not be able to be changed by the user. The PHP page should assign the value to the job and pass it to the mySQL db and insert it into the job_no column.
Anyone have an idea of how i can implement this? any help would be much appreciated