swatisonee
01-06-2007, 02:58 AM
Hi,
I have a form full of data that needs to get saved in a db - not a problem.
What i now need to do is find a way where, one of fields in one table points to a file in a folder on the server . Now this file is a doc file - a report that gets updated all the time by different users.
For simplicity, lets say, this form holds address data of 10 persons. Now lets assume they change homes frequently and since each knows the address of the other, the street field in Record A, originally entered by User A, can be modified by User B and then posted back to its place . Similarly, Users C and D can change the street name but Users E-J can only view the addresses but not edit it.
Now all street field data is stored in public/html/domain/Addresses/England folder on the Server and the file they are stored in is Engadd.doc . I need to be able to call Engadd.doc and then have the records added, modified or viewed.
I'm pretty much set for most of this code but I'm not sure what kind of syntax to use to be able to call,edit and then upload both $street and Engadd to its place.
The possibility of doing and INSERT or UPDATE $street = $_POST["street"]; is not on because that only saves $street in the table field but not in the file on the folder.
Would anyone guide me on this please ?
Thanks !
Swati
I have a form full of data that needs to get saved in a db - not a problem.
What i now need to do is find a way where, one of fields in one table points to a file in a folder on the server . Now this file is a doc file - a report that gets updated all the time by different users.
For simplicity, lets say, this form holds address data of 10 persons. Now lets assume they change homes frequently and since each knows the address of the other, the street field in Record A, originally entered by User A, can be modified by User B and then posted back to its place . Similarly, Users C and D can change the street name but Users E-J can only view the addresses but not edit it.
Now all street field data is stored in public/html/domain/Addresses/England folder on the Server and the file they are stored in is Engadd.doc . I need to be able to call Engadd.doc and then have the records added, modified or viewed.
I'm pretty much set for most of this code but I'm not sure what kind of syntax to use to be able to call,edit and then upload both $street and Engadd to its place.
The possibility of doing and INSERT or UPDATE $street = $_POST["street"]; is not on because that only saves $street in the table field but not in the file on the folder.
Would anyone guide me on this please ?
Thanks !
Swati