I have a database with 3 rows: Name, x-cord, y-cord. I need a script to handle all of these.
For example:
- My external application sends the Name, x-cord and y-cord to the PHP file via POST
- The PHP file saves Name, x-cord and y-cord to the database, overwriting the current x-cord and y-cord that goes with Name.
- Once the x-cord and y-cord are saved into the Database they need to be written into name.txt, again overwriting anything in there.
Name = John
x-cord = 2
y-cord = 4
So John, 2 and 4 are saved in the database columns Name, x-cord and y-cord respectively. Once saved into the database x-cord and y-cord are written out into John.txt. John.txt then looks like
If anyone could do this fairly easy task then I will love you for eternity and give you +REP too.x-cord = 2
y-cord = 2





Reply With Quote





